drivers/net/wireless/ath/wil6210: Makefile, only -Werror when no -W* in EXTRA_CFLAGS
authorChen Gang <gang.chen@asianux.com>
Wed, 27 Feb 2013 06:55:06 +0000 (14:55 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Mar 2013 21:25:48 +0000 (16:25 -0500)
  When make with EXTRA_CFLAGS=-W, it will report error.
  so give a check in Makefile.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Acked-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/Makefile

index 9396dc9fe3c5c475588de3e2adce034eb66b6a42..d288eea0a26a0136bd66b8c8bed4e8a1dd4dd2ee 100644 (file)
@@ -9,5 +9,7 @@ wil6210-objs += wmi.o
 wil6210-objs += interrupt.o
 wil6210-objs += txrx.o
 
-subdir-ccflags-y += -Werror
+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
+       subdir-ccflags-y += -Werror
+endif
 subdir-ccflags-y += -D__CHECK_ENDIAN__