[PATCH 24/24] kbuild: add -Werror=strict-prototypes flag unconditionally
Ilias Apalodimas
ilias.apalodimas at linaro.org
Tue May 20 07:21:35 CEST 2025
Backported from kernel
commit eeb5687a7139649e ("kbuild: add -Werror=strict-prototypes flag unconditionally")
Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 66803f089d48..2890edbcc43f 100644
--- a/Makefile
+++ b/Makefile
@@ -433,7 +433,7 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__
-KBUILD_CFLAGS := -Wall -Wstrict-prototypes \
+KBUILD_CFLAGS := -Wall -Werror=strict-prototypes -Wno-trigraphs \
-Wno-format-security \
-fno-builtin -ffreestanding $(CSTD_FLAG)
KBUILD_CFLAGS += -fshort-wchar -fno-strict-aliasing
--
2.49.0
More information about the U-Boot
mailing list