diff options
author | Chih-hung Hsieh <chh@google.com> | 2017-10-15 04:23:38 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-15 04:23:38 +0000 |
commit | c91766be13a9664b3369d08eec0b1f4b9b02c307 (patch) | |
tree | 7bd674f8d0a0b22e7aa9c3f6b30c144840f6755f | |
parent | 6caf841db6eafe944e8e7901dd9bb8eab270a90e (diff) | |
parent | 15e935a03c97eb9c53c1919c98a1d945081aa357 (diff) | |
download | libusb-c91766be13a9664b3369d08eec0b1f4b9b02c307.tar.gz |
Merge "Use -Werror in external/libusb" am: 15c76ed42c am: 5b61229604
am: 15e935a03c
Change-Id: I0219d6ba555cf63f771570d75b9ee9d84178afb7
-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, }, |