summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSodagudi Prasad <psodagud@codeaurora.org>2018-02-06 15:46:51 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-27 16:07:59 +0100
commitcfbabf536f6b3e9f0bdea8cc388906ae90232689 (patch)
treece1b47ddd3471489522e50b718c94f9f8a47bdf2 /include/linux
parent4e0ae28ea0a7b769c596107b6297ce6d1122a214 (diff)
kbuild: clang: disable unused variable warnings only when constant
commit 0a5f41767444cc3b4fc5573921ab914b4f78baaa upstream. Currently, GCC disables -Wunused-const-variable, but not -Wunused-variable, so warns unused variables if they are non-constant. While, Clang does not warn unused variables at all regardless of the const qualifier because -Wno-unused-const-variable is implied by the stronger option -Wno-unused-variable. Disable -Wunused-const-variable instead of -Wunused-variable so that GCC and Clang work in the same way. Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions