Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gcc-10: disable 'stringop-overflow' warning for now

This is the final array bounds warning removal for gcc-10 for now.

Again, the warning is good, and we should re-enable all these warnings
when we have converted all the legacy array declaration cases to
flexible arrays. But in the meantime, it's just noise.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+1
+1
Makefile
··· 880 880 # We'll want to enable this eventually, but it's not going away for 5.7 at least 881 881 KBUILD_CFLAGS += $(call cc-disable-warning, zero-length-bounds) 882 882 KBUILD_CFLAGS += $(call cc-disable-warning, array-bounds) 883 + KBUILD_CFLAGS += $(call cc-disable-warning, stringop-overflow) 883 884 884 885 # Enabled with W=2, disabled by default as noisy 885 886 KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)