summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2014-06-11 16:57:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-18 14:08:58 -0700
commitee264346fa08395aa6e846b72e7b3987e959f053 (patch)
tree4afdc0cc29bcb9238fe26400ed6aab46e526ffab
parent7579a7e47d6572455c48f822dd47bd1993ec9d95 (diff)
staging: rtl8723au: Add compiler check for -Wtype-limits
Gcc versions before 4.3 do not support -Wtype-limits: cc1: error: unrecognized command line option "-Wtype-limits" Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723au/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723au/Makefile b/drivers/staging/rtl8723au/Makefile
index 6f76c7b2adbc..a9aae2163639 100644
--- a/drivers/staging/rtl8723au/Makefile
+++ b/drivers/staging/rtl8723au/Makefile
@@ -52,4 +52,5 @@ r8723au-$(CONFIG_8723AU_AP_MODE) += core/rtw_ap.o
obj-$(CONFIG_R8723AU) := r8723au.o
-ccflags-y += -Wtype-limits -D__CHECK_ENDIAN__ -I$(src)/include
+ccflags-y += $(call cc-option,-Wtype-limits,)
+ccflags-y += -D__CHECK_ENDIAN__ -I$(src)/include