summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2025-06-27 21:57:15 +0300
committerTom Rini <[email protected]>2025-07-08 13:10:02 -0600
commit22595e7430b878fdc769d7cd126828cf6a385b83 (patch)
tree626989b1c4398caeb7850ea596173a1c96753237 /scripts
parent490ae8ceae2d5999c9de863e014e463f5c1495a6 (diff)
kbuild: Update Makefile.extrawarn to 5.1
Since we are updating our kbuild system to 5.1, add the relevant clang changes from upstream Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.extrawarn9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index f687515fc79..7df62263bc4 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -67,5 +67,14 @@ ifeq ("$(strip $(warning))","")
endif
KBUILD_CFLAGS += $(warning)
+else
+ifdef CONFIG_CC_IS_CLANG
+KBUILD_CFLAGS += $(call cc-disable-warning, initializer-overrides)
+KBUILD_CFLAGS += $(call cc-disable-warning, unused-value)
+KBUILD_CFLAGS += $(call cc-disable-warning, format)
+KBUILD_CFLAGS += $(call cc-disable-warning, sign-compare)
+KBUILD_CFLAGS += $(call cc-disable-warning, format-zero-length)
+KBUILD_CFLAGS += $(call cc-disable-warning, uninitialized)
+endif
endif