Searched hist:"0 a5f41767444cc3b4fc5573921ab914b4f78baaa" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/ |
H A D | Makefile | 0a5f41767444cc3b4fc5573921ab914b4f78baaa Tue Feb 06 17:46:51 CST 2018 Sodagudi Prasad <psodagud@codeaurora.org> kbuild: clang: disable unused variable warnings only when constant
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>
|