summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-hung Hsieh <chh@google.com>2017-11-13 20:24:55 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-11-13 20:24:55 +0000
commitf28bbbf0980342bde90b69bce4108e8c88417d2e (patch)
treeb9826da0dbce5e4a5750c9f5a6eed43f6331fda8
parent58bfe6e15be780b779de7af5166e17f175ad8797 (diff)
parent031e839deb93d8aff053640beb7c5a2333650e67 (diff)
downloadandroid_hardware_broadcom_wlan-f28bbbf0980342bde90b69bce4108e8c88417d2e.tar.gz
android_hardware_broadcom_wlan-f28bbbf0980342bde90b69bce4108e8c88417d2e.tar.bz2
android_hardware_broadcom_wlan-f28bbbf0980342bde90b69bce4108e8c88417d2e.zip
Merge "Use -Werror in hardware/broadcom/wlan/bcmdhd"
am: 031e839deb Change-Id: I6d6577090b0f73976257420fbd5fa3b3865f5251
-rw-r--r--bcmdhd/dhdutil/Android.mk1
-rw-r--r--bcmdhd/wifi_hal/Android.mk10
-rw-r--r--bcmdhd/wpa_supplicant_8_lib/Android.mk2
3 files changed, 12 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..48a7b12 100644
--- a/bcmdhd/wifi_hal/Android.mk
+++ b/bcmdhd/wifi_hal/Android.mk
@@ -18,7 +18,15 @@ LOCAL_PATH := $(call my-dir)
# ============================================================
include $(CLEAR_VARS)
-LOCAL_CFLAGS := -Wno-unused-parameter
+LOCAL_CFLAGS := \
+ -Wall \
+ -Werror \
+ -Wno-format \
+ -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)