Skip to content

Commit f852ce0

Browse files
t-8chnathanchance
authored andcommitted
kbuild: align W=e with CONFIG_WERROR
CONFIG_WERROR sets KBUILD_CPPFLAGS while W=e would only set KBUILD_CFLAGS. As a preparation to unify the two mechanism, align their effects. While at it, add some alignment whitespace to prepare for later additions to the list of changed variables. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Nicolas Schier <nsc@kernel.org> Link: https://lore.kernel.org/r/20250814-kbuild-werror-v2-1-c01e596309d2@linutronix.de Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent b8d762c commit f852ce0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/Makefile.extrawarn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,6 @@ endif
218218
#
219219
ifneq ($(findstring e, $(KBUILD_EXTRA_WARN)),)
220220

221-
KBUILD_CFLAGS += -Werror
221+
KBUILD_CPPFLAGS += -Werror
222222

223223
endif

0 commit comments

Comments
 (0)