summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-11-06 12:17:26 -0800
committerChih-Hung Hsieh <chh@google.com>2017-11-06 13:58:32 -0800
commit4801da86f0c573b30cebf759dff49da81bb78e90 (patch)
treec17fd365cb7f61b55230b1740b80297608d19615
parent12a198def56b4ed3769507d0fc097b06e3e724bd (diff)
downloadbt-4801da86f0c573b30cebf759dff49da81bb78e90.tar.gz
Use -Werror in hardware/qcom/bt
* Suppress existing warnings. * Keep user-defined-warnings, to fix later. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I503bef7c15b8182231e7460c6378c8040cf25cec
-rw-r--r--msm8998/libbt-vendor/Android.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/msm8998/libbt-vendor/Android.mk b/msm8998/libbt-vendor/Android.mk
index f75ad1a..841c3c4 100644
--- a/msm8998/libbt-vendor/Android.mk
+++ b/msm8998/libbt-vendor/Android.mk
@@ -80,6 +80,15 @@ LOCAL_CFLAGS += -DENABLE_ANT
endif
#LOCAL_CFLAGS += -DREAD_BT_ADDR_FROM_PROP
+LOCAL_CFLAGS += \
+ -Wall \
+ -Werror \
+ -Wno-error=user-defined-warnings \
+ -Wno-incompatible-pointer-types-discards-qualifiers \
+ -Wno-unused-function \
+ -Wno-unused-label \
+ -Wno-unused-variable \
+
#include $(LOCAL_PATH)/vnd_buildcfg.mk
include $(BUILD_SHARED_LIBRARY)