]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: add -Wno-unused-but-set-variable flag unconditionally
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 2 Oct 2018 01:32:23 +0000 (10:32 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 19 Oct 2018 00:47:45 +0000 (09:47 +0900)
commite2170cb57876527d6b05aa80d35d0f3a3b0b81d1
treec955f868592d410173aa0ae96ce40c6b501dcccb
parent7f317272194aa41717002d6ebe6bee85d42e322c
kbuild: add -Wno-unused-but-set-variable 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 was added by GCC 4.6, and it is recognized by ICC as well.

It is true that Clang does not support this flag but this commit is
just touching the else part of the "ifeq ($(cc-name),clang)" check.
Hence, Clang build is not affected.

Let's rip off the cc-disable-warning switch, and see if somebody
complains about it.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Makefile