From: Stephen Rothwell Date: Thu, 30 Aug 2018 21:47:28 +0000 (+1000) Subject: disable stringop truncation warnings for now X-Git-Tag: v4.14.87~54 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9f8d10971a2395359751487c517bf33e5d8f9e43;p=users%2Fjedix%2Flinux-maple.git disable stringop truncation warnings for now commit 217c3e0196758662aa0429863b09d1c13da1c5d6 upstream. They are too noisy Signed-off-by: Stephen Rothwell Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- diff --git a/Makefile b/Makefile index 572bd98d23444..77ffc1dc4e79b 100644 --- a/Makefile +++ b/Makefile @@ -803,6 +803,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) # disable pointer signed / unsigned warnings in gcc 4.0 KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign) +# disable stringop warnings in gcc 8+ +KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation) + # disable invalid "can't wrap" optimizations for signed / pointers KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)