diff options
| author | Chih-Hung Hsieh <chh@google.com> | 2017-11-07 13:54:17 -0800 |
|---|---|---|
| committer | Chih-Hung Hsieh <chh@google.com> | 2017-11-07 14:31:49 -0800 |
| commit | dc2252cd2c038d6c00c17bf3b0bcedb083d9899a (patch) | |
| tree | e39681798283208f514560fd36c43312a29870d4 /bcmdhd | |
| parent | ce868768b2f37e0d0b8df564b8ad6294a2245ae6 (diff) | |
| download | android_hardware_broadcom_wlan-dc2252cd2c038d6c00c17bf3b0bcedb083d9899a.tar.gz android_hardware_broadcom_wlan-dc2252cd2c038d6c00c17bf3b0bcedb083d9899a.tar.bz2 android_hardware_broadcom_wlan-dc2252cd2c038d6c00c17bf3b0bcedb083d9899a.zip | |
Use -Werror in hardware/broadcom/wlan/bcmdhd
* Suppress existing warnings.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I8ba575deb0480d1a8e27911c464cdf9984adc2c9
Diffstat (limited to 'bcmdhd')
| -rw-r--r-- | bcmdhd/dhdutil/Android.mk | 1 | ||||
| -rw-r--r-- | bcmdhd/wifi_hal/Android.mk | 9 | ||||
| -rw-r--r-- | bcmdhd/wpa_supplicant_8_lib/Android.mk | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/bcmdhd/dhdutil/Android.mk b/bcmdhd/dhdutil/Android.mk index 4294413..c3a5614 100644 --- a/bcmdhd/dhdutil/Android.mk +++ b/bcmdhd/dhdutil/Android.mk @@ -30,6 +30,7 @@ LOCAL_CFLAGS := -DSDTEST -DTARGETENV_android -Dlinux -DLINUX ifeq ($(TARGET_ARCH),arm) LOCAL_CFLAGS += -mabi=aapcs-linux endif +LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter LOCAL_C_INCLUDES +=$(LOCAL_PATH)/include LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) diff --git a/bcmdhd/wifi_hal/Android.mk b/bcmdhd/wifi_hal/Android.mk index 9e4ed08..2db5f17 100644 --- a/bcmdhd/wifi_hal/Android.mk +++ b/bcmdhd/wifi_hal/Android.mk @@ -18,7 +18,14 @@ LOCAL_PATH := $(call my-dir) # ============================================================ include $(CLEAR_VARS) -LOCAL_CFLAGS := -Wno-unused-parameter +LOCAL_CFLAGS := \ + -Wall \ + -Werror \ + -Wno-reorder \ + -Wno-unused-function \ + -Wno-unused-parameter \ + -Wno-unused-private-field \ + -Wno-unused-variable \ LOCAL_C_INCLUDES += \ external/libnl/include \ diff --git a/bcmdhd/wpa_supplicant_8_lib/Android.mk b/bcmdhd/wpa_supplicant_8_lib/Android.mk index c1d3c34..db350cf 100644 --- a/bcmdhd/wpa_supplicant_8_lib/Android.mk +++ b/bcmdhd/wpa_supplicant_8_lib/Android.mk @@ -60,6 +60,8 @@ ifeq ($(TARGET_USES_64_BIT_BCMDHD),true) L_CFLAGS += -DBCMDHD_64_BIT_IPC endif +L_CFLAGS += -Wall -Werror -Wno-unused-parameter -Wno-macro-redefined + ######################## include $(CLEAR_VARS) |
