diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-10-11 11:07:16 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-10-11 11:10:01 -0700 |
commit | f0237defe33eaf826617e2ec7d0846c7c091d786 (patch) | |
tree | 7bd674f8d0a0b22e7aa9c3f6b30c144840f6755f | |
parent | 710b591ed02c5b6bc44ca098f8c1eea8c2bc0a34 (diff) | |
download | libusb-f0237defe33eaf826617e2ec7d0846c7c091d786.tar.gz |
Use -Werror in external/libusb
* Keep sign-compare and swtich warnings, to be fixed later
* Has not fixed all warnings for darwin target yet.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ie75372f2bd62cb69933fed8bffee5332b23af8a3
-rw-r--r-- | Android.bp | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -16,6 +16,12 @@ cc_library { "libusb/os", ], + cflags: [ + "-Wall", + "-Wno-error=sign-compare", + "-Wno-error=switch", + ], + target: { android: { srcs: [ @@ -28,6 +34,8 @@ cc_library { local_include_dirs: [ "android", ], + + cflags: ["-Werror"], }, darwin: { @@ -46,6 +54,8 @@ cc_library { "-framework IOKit", "-lobjc" ], + + // cflags: ["-Werror"], // still has warnings }, linux_glibc: { @@ -59,6 +69,8 @@ cc_library { local_include_dirs: [ "linux", ], + + cflags: ["-Werror"], }, windows: { @@ -74,6 +86,8 @@ cc_library { "windows", ], + cflags: ["-Werror"], + // Not working yet. enabled: false, }, |