]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
kbuild: add -Wdeclaration-after-statement flag unconditionally
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 1 Oct 2018 09:44:37 +0000 (18:44 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 19 Oct 2018 00:47:45 +0000 (09:47 +0900)
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>
Makefile

index 9e41e4563a994ddff5f6bd3a360941b434a820dd..d4343739490fbc7c3f7c41707e3fb25ecac52085 100644 (file)
--- 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