diff options
author | Jiyong Park <jiyong@google.com> | 2022-03-23 17:43:54 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2022-03-31 12:01:43 +0900 |
commit | bb73ba4e68cd66f755ab681808021fecc5d06604 (patch) | |
tree | 712615bb31173f4990f0feaffa0ffa698c4ec94f /soundtrigger | |
parent | 3c4b1725fa01849553cf14d232f50e062bf75fae (diff) |
Add -Wno-missing-permission-annotation for soundtrigger3
Soundtrigger3 has been built with "-Werror -Weverything" (from
Android.bp) and "-Weverything -Wno-missing-permission-annotation" (from
the AIDL build system). The former is added only for the ToT version of
an AIDL interface.
So far, soundtrigger3 wasn't frozen and therefore the implicit version 1
was the ToT version. As a result, absence of @RequiresPermission in its
interface didn't break the build due to the automatically added
"-Wno-missing-permission-annotation" despite that it had "-Werror".
However, this is causing build breakage as soundtrigger3 now has version
1 and 2 (ToT) and the version 1 is built *without*
"-Wno-missing-permission-annotation".
Fixing this by manually adding the diag flag so that it's applied to all
versions.
Bug: 225941299
Test: m
Change-Id: I3a43fc77997ef900b0f173c88530f570e436bc77
Diffstat (limited to 'soundtrigger')
-rw-r--r-- | soundtrigger/aidl/Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/soundtrigger/aidl/Android.bp b/soundtrigger/aidl/Android.bp index ab104c878b..448895c26c 100644 --- a/soundtrigger/aidl/Android.bp +++ b/soundtrigger/aidl/Android.bp @@ -14,6 +14,7 @@ aidl_interface { flags: [ "-Werror", "-Weverything", + "-Wno-missing-permission-annotation", ], srcs: [ "android/hardware/soundtrigger3/ISoundTriggerHw.aidl", |