diff mbox series

correct disabling of -Wstringop-overflow

Message ID 4b19fae4-ba5d-45b6-ae4a-8b59c178f529@suse.com (mailing list archive)
State New
Headers show
Series correct disabling of -Wstringop-overflow | expand

Commit Message

Jan Beulich April 14, 2025, 2:22 p.m. UTC
As was done up to 6.5, disabling of warnings needs to probe for the
positive command line option. Hence why there is cc-disable-warning.

Fixes: a5e0ace04fbf ("init: Kconfig: Disable -Wstringop-overflow for GCC-11")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
diff mbox series

Patch

--- a/Makefile
+++ b/Makefile
@@ -1054,7 +1054,7 @@  NOSTDINC_FLAGS += -nostdinc
 KBUILD_CFLAGS += $(call cc-option, -fstrict-flex-arrays=3)
 
 #Currently, disable -Wstringop-overflow for GCC 11, globally.
-KBUILD_CFLAGS-$(CONFIG_CC_NO_STRINGOP_OVERFLOW) += $(call cc-option, -Wno-stringop-overflow)
+KBUILD_CFLAGS-$(CONFIG_CC_NO_STRINGOP_OVERFLOW) += $(call cc-disable-warning,stringop-overflow)
 KBUILD_CFLAGS-$(CONFIG_CC_STRINGOP_OVERFLOW) += $(call cc-option, -Wstringop-overflow)
 
 # disable invalid "can't wrap" optimizations for signed / pointers