]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f317272194aa41717002d6ebe6bee85d42e322c
treeb53a1e6f64f9cbce4fd31e5be1c209a905c0e0bb
parenta0f8ceee89a1f3e35a4af7071760ce375cff80e2
kbuild: add -Wdeclaration-after-statement flag unconditionally

We have raised the compiler requirement from time to time.
With commit 46ed35d9f3fa ("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