[PATCH RFC next 12/18] scripts/Makefile.extrawarn.u-boot: remove redundant Werror handling

Quentin Schulz foss+uboot at 0leil.net
Mon May 4 15:20:39 CEST 2026


From: Quentin Schulz <quentin.schulz at cherry.de>

In the previous commit, scripts/Makefile.extrawarn from the Linux kernel
gained support for adding -Werror to KBUILD_CPPFLAGS when CONFIG_WERROR
is enabled, therefore this is now redundant and can be removed.

Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
 scripts/Makefile.extrawarn.u-boot | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/scripts/Makefile.extrawarn.u-boot b/scripts/Makefile.extrawarn.u-boot
index 86f6fbc2301..0a9b49a30f0 100644
--- a/scripts/Makefile.extrawarn.u-boot
+++ b/scripts/Makefile.extrawarn.u-boot
@@ -25,6 +25,3 @@ ifdef CONFIG_CC_IS_CLANG
 # there are other places as well. For now, we will silence this warning.
 KBUILD_CFLAGS += $(call cc-disable-warning, deprecated-non-prototype)
 endif
-
-KBUILD_CPPFLAGS-$(CONFIG_WERROR) += -Werror
-KBUILD_CPPFLAGS += $(KBUILD_CPPFLAGS-y)

-- 
2.54.0



More information about the U-Boot mailing list