diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-11-06 12:17:26 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-11-06 13:58:32 -0800 |
commit | 4801da86f0c573b30cebf759dff49da81bb78e90 (patch) | |
tree | c17fd365cb7f61b55230b1740b80297608d19615 | |
parent | 12a198def56b4ed3769507d0fc097b06e3e724bd (diff) | |
download | bt-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.mk | 9 |
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) |