From cac7beef27f73d7860d909aa4337a84c741032ba Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 28 Sep 2017 14:46:16 -0700 Subject: Use -Werror in external/libusb * Keep sign-compare and swtich warnings, to be fixed later Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I820cf90233806cf69e300dbfe1777956af0cb902 --- Android.bp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Android.bp') diff --git a/Android.bp b/Android.bp index 0a137c1..e2854a0 100644 --- a/Android.bp +++ b/Android.bp @@ -16,6 +16,13 @@ cc_library { "libusb/os", ], + cflags: [ + "-Wall", + "-Werror", + "-Wno-error=sign-compare", + "-Wno-error=switch", + ], + target: { android: { srcs: [ -- cgit v1.2.3