From 9176ec066ec507e21bcbcc86c177e05e81478167 Mon Sep 17 00:00:00 2001 From: Greg Hackmann Date: Mon, 14 Apr 2014 17:06:02 -0700 Subject: [PATCH] Android: Disable unused parameter warnings This avoids large number of undesired compiler warnings since Android build system is added -Wextra. Signed-off-by: Greg Hackmann --- hostapd/Android.mk | 3 +++ wpa_supplicant/Android.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git a/hostapd/Android.mk b/hostapd/Android.mk index 6db82f854..74c9b27a7 100644 --- a/hostapd/Android.mk +++ b/hostapd/Android.mk @@ -24,6 +24,9 @@ L_CFLAGS += -DVERSION_STR_POSTFIX=\"-$(PLATFORM_VERSION)\" # Set Android log name L_CFLAGS += -DANDROID_LOG_NAME=\"hostapd\" +# Disable unused parameter warnings +L_CFLAGS += -Wno-unused-parameter + ifeq ($(BOARD_WLAN_DEVICE), bcmdhd) L_CFLAGS += -DANDROID_P2P endif diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk index c8fe1c2c8..f56267c8c 100644 --- a/wpa_supplicant/Android.mk +++ b/wpa_supplicant/Android.mk @@ -24,6 +24,9 @@ L_CFLAGS += -DVERSION_STR_POSTFIX=\"-$(PLATFORM_VERSION)\" # Set Android log name L_CFLAGS += -DANDROID_LOG_NAME=\"wpa_supplicant\" +# Disable unused parameter warnings +L_CFLAGS += -Wno-unused-parameter + # Disable roaming in wpa_supplicant ifdef CONFIG_NO_ROAMING L_CFLAGS += -DCONFIG_NO_ROAMING