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>
This commit is contained in:
Geert Uytterhoeven 2014-06-11 16:57:46 +02:00 committed by Greg Kroah-Hartman
parent 7579a7e47d
commit ee264346fa
1 changed files with 2 additions and 1 deletions

View File

@ -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