aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-10-16 08:11:33 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-10-16 08:11:33 +0000
commita132358c5dc7763c5750bf08d83cde602a46fc7f (patch)
tree7bd674f8d0a0b22e7aa9c3f6b30c144840f6755f
parent20f68a09f92054c7e678a807f836a8ae7705633f (diff)
parent7fab447f2f912dfd3c6a22ee6d00e6d104121210 (diff)
downloadplatform_external_libusb-a132358c5dc7763c5750bf08d83cde602a46fc7f.tar.gz
platform_external_libusb-a132358c5dc7763c5750bf08d83cde602a46fc7f.tar.bz2
platform_external_libusb-a132358c5dc7763c5750bf08d83cde602a46fc7f.zip
Snap for 4396682 from 7fab447f2f912dfd3c6a22ee6d00e6d104121210 to pi-release
Change-Id: Idf29a4104a5f79e642528f64a9b03487eb85b610
-rw-r--r--Android.bp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 2ca1b99..7d2ea31 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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,
},