summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2025-05-20 08:21:35 +0300
committerTom Rini <[email protected]>2025-05-29 18:42:38 -0600
commit0128b2cf4da8bd69c695d56743a666faf159d2d5 (patch)
tree180bcee383c6c27cec596456f96540c1d82741ed
parentaf1a9935708a30614e3dbf4a33e5fe90e846f598 (diff)
kbuild: add -Werror=strict-prototypes flag unconditionally
Backported from kernel commit eeb5687a7139649e ("kbuild: add -Werror=strict-prototypes flag unconditionally") Signed-off-by: Ilias Apalodimas <[email protected]>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 66803f089d4..2890edbcc43 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