Skip to content

Commit 5a76021

Browse files
committed
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 <[email protected]>
1 parent 4472099 commit 5a76021

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
880880
# We'll want to enable this eventually, but it's not going away for 5.7 at least
881881
KBUILD_CFLAGS += $(call cc-disable-warning, zero-length-bounds)
882882
KBUILD_CFLAGS += $(call cc-disable-warning, array-bounds)
883+
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-overflow)
883884

884885
# Enabled with W=2, disabled by default as noisy
885886
KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)

0 commit comments

Comments
 (0)