From: Stephen Rothwell Date: Thu, 30 Aug 2018 21:47:28 +0000 (+1000) Subject: disable stringop truncation warnings for now X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=217c3e0196758662aa0429863b09d1c13da1c5d6;p=openwrt%2Fstaging%2Fblogic.git disable stringop truncation warnings for now They are too noisy Signed-off-by: Stephen Rothwell Signed-off-by: Linus Torvalds --- diff --git a/Makefile b/Makefile index 2b458801ba74..a34a9283ee90 100644 --- a/Makefile +++ b/Makefile @@ -807,6 +807,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)