Skip to content

Commit 217c3e0

Browse files
sfrothwelltorvalds
authored andcommitted
disable stringop truncation warnings for now
They are too noisy Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b6935d2 commit 217c3e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
807807
# disable pointer signed / unsigned warnings in gcc 4.0
808808
KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
809809

810+
# disable stringop warnings in gcc 8+
811+
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
812+
810813
# disable invalid "can't wrap" optimizations for signed / pointers
811814
KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
812815

0 commit comments

Comments
 (0)