aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2022-12-06 04:07:30 +0000
committerMasahiro Yamada <[email protected]>2022-12-11 08:28:00 +0000
commitefa80b028c7a9c74fd875517aa0fc9fd8d610ed0 (patch)
tree2c69df482339eea896d39b3a9aa2d76aa39fa330 /scripts/clang-tools/gen_compile_commands.py
parentkbuild: Port silent mode detection to future gnu make. (diff)
downloadkernel-efa80b028c7a9c74fd875517aa0fc9fd8d610ed0.tar.gz
kernel-efa80b028c7a9c74fd875517aa0fc9fd8d610ed0.zip
kbuild: move -Werror from KBUILD_CFLAGS to KBUILD_CPPFLAGS
CONFIG_WERROR turns warnings into errors, which happens only for *.c files because -Werror is added to KBUILD_CFLAGS. Adding it to KBUILD_CPPFLAGS makes more sense because preprocessors understand the -Werror option. For example, you can put a #warning directive in any preprocessed code. warning: #warning "this is a warning message" [-Wcpp] If -Werror is added, it is promoted to an error. error: #warning "this is a warning message" [-Werror=cpp] This commit moves -Werror to KBUILD_CPPFLAGS so it works in the same way for *.c, *.S, *.lds.S or whatever needs preprocessing. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions