Skip to content

Commit

Permalink
drivers/net/wireless/ath/wil6210: Makefile, only -Werror when no -W* …
Browse files Browse the repository at this point in the history
…in EXTRA_CFLAGS

  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>
  • Loading branch information
Chen Gang authored and John W. Linville committed Mar 6, 2013
1 parent 4ba910d commit 6f56b06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/ath/wil6210/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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__

0 comments on commit 6f56b06

Please sign in to comment.