diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-10-30 10:17:21 -0700 |
---|---|---|
committer | Chih-hung Hsieh <chh@google.com> | 2017-11-02 16:32:38 +0000 |
commit | 072af1f1974cd44b99ebc30e6282d47cd1f65d25 (patch) | |
tree | f4bf67302e656d841f7b422fb30ec7bf283f3626 | |
parent | d4592bd501f5898d7f00e709711d896e04a88c40 (diff) | |
download | adhd-072af1f1974cd44b99ebc30e6282d47cd1f65d25.tar.gz |
Use -Werror in external/adhd/cras/src
* Suppress non-critical warnings.
* Keep other existing warnings to fix later.
Bug: 66996870
Test: build with WITH_TIDY=1
Exempt-From-Owner-Approval: owners file contains unregistered email addresses
Change-Id: Ia3f93bdc6fd8b14e5f88c9d382a6b04741b9c4f8
-rw-r--r-- | cras/src/Android.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cras/src/Android.mk b/cras/src/Android.mk index fc2ee4c0..7856ee4c 100644 --- a/cras/src/Android.mk +++ b/cras/src/Android.mk @@ -20,7 +20,12 @@ LOCAL_C_INCLUDES += \ external/tinyalsa/include LOCAL_CFLAGS += \ - -DCRAS_SOCKET_FILE_DIR=\"/var/run/cras\" + -DCRAS_SOCKET_FILE_DIR=\"/var/run/cras\" \ + -Wall \ + -Werror \ + -Wno-error=missing-field-initializers \ + -Wno-sign-compare \ + -Wno-unused-parameter \ LOCAL_MODULE := libcras |