diff options
author | Haoran Wang <b50027@freescale.com> | 2015-11-02 10:29:24 +0800 |
---|---|---|
committer | Haoran Wang <b50027@freescale.com> | 2015-11-02 10:54:27 +0800 |
commit | 4d2ed734f83ca718a04ccaff8acb8f81fd93c56d (patch) | |
tree | 46db9010a7a43a58c5bf21adc5b73225dc32fa66 | |
parent | b18bbfecce1039e2999538ca6954e85e0ffb3278 (diff) | |
download | freescale-4d2ed734f83ca718a04ccaff8acb8f81fd93c56d.tar.gz |
MA-7064 Ignore gcc4.9 Werror=date-time in rtl8821as
Ignore the compilation error caused by gcc4.9
Werror=date-time in rtl8821as driver.
Signed-off-by: Haoran Wang <b50027@freescale.com>
-rwxr-xr-x | drivers/net/wireless/rtlwifi/rtl8821as/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8821as/Makefile b/drivers/net/wireless/rtlwifi/rtl8821as/Makefile index 2e1054070a5..0f39e500be3 100755 --- a/drivers/net/wireless/rtlwifi/rtl8821as/Makefile +++ b/drivers/net/wireless/rtlwifi/rtl8821as/Makefile @@ -14,7 +14,9 @@ EXTRA_CFLAGS += -Wno-unused-parameter EXTRA_CFLAGS += -Wno-unused-function EXTRA_CFLAGS += -Wno-unused #EXTRA_CFLAGS += -Wno-uninitialized -#EXTRA_CFLAGS += -Wno-error=date-time # Fix compile error on gcc 4.9 and later +ifeq ($(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 9), 1) +EXTRA_CFLAGS += -Wno-error=date-time # Fix compile error on gcc 4.9 and later +endif EXTRA_CFLAGS += -I$(src)/include |