summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada2018-10-01 11:44:37 +0200
committerMasahiro Yamada2018-10-19 02:47:45 +0200
commita33e7ae295d5bc20568c48ac217d07f011091c32 (patch)
treeb53a1e6f64f9cbce4fd31e5be1c209a905c0e0bb /Makefile
parentkbuild: add -Wno-pointer-sign flag unconditionally (diff)
downloadkernel-qcow2-linux-a33e7ae295d5bc20568c48ac217d07f011091c32.tar.gz
kernel-qcow2-linux-a33e7ae295d5bc20568c48ac217d07f011091c32.tar.xz
kernel-qcow2-linux-a33e7ae295d5bc20568c48ac217d07f011091c32.zip
kbuild: add -Wdeclaration-after-statement flag unconditionally
We have raised the compiler requirement from time to time. With commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6"), the minimum for GCC is 4.6 now. This flag has been here since the pre-git era. It is documented in the GCC 4.6 manual, and it is recognized by Clang and ICC as well. Let's rip off the cc-option switch, and see if somebody complains about it. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9e41e4563a99..d4343739490f 100644
--- a/Makefile
+++ b/Makefile
@@ -807,7 +807,7 @@ endif
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
# warn about C99 declaration after statement
-KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
+KBUILD_CFLAGS += -Wdeclaration-after-statement
# disable pointer signed / unsigned warnings in gcc 4.0
KBUILD_CFLAGS += -Wno-pointer-sign