diff mbox

staging: rtl8723au: Add compiler check for -Wtype-limits

Message ID 1402498666-5018-1-git-send-email-geert@linux-m68k.org (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Geert Uytterhoeven June 11, 2014, 2:57 p.m. UTC
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>
---
 drivers/staging/rtl8723au/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jes Sorensen June 11, 2014, 3:22 p.m. UTC | #1
Geert Uytterhoeven <geert@linux-m68k.org> writes:
> 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>
> ---
>  drivers/staging/rtl8723au/Makefile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Museum support is fine with me :)

Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>

>
> diff --git a/drivers/staging/rtl8723au/Makefile
> b/drivers/staging/rtl8723au/Makefile
> index a6316af94b79..6b3f25555c74 100644
> --- a/drivers/staging/rtl8723au/Makefile
> +++ b/drivers/staging/rtl8723au/Makefile
> @@ -53,4 +53,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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/staging/rtl8723au/Makefile b/drivers/staging/rtl8723au/Makefile
index a6316af94b79..6b3f25555c74 100644
--- a/drivers/staging/rtl8723au/Makefile
+++ b/drivers/staging/rtl8723au/Makefile
@@ -53,4 +53,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