2018-02-07 8:46 GMT+09:00 Prasad Sodagudi <psodagud@xxxxxxxxxxxxxx>: > 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@xxxxxxxxxxxxxx> > Reviewed-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx> Applied to linux-kbuild/kbuild. Thanks! -- Best Regards Masahiro Yamada -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html