From: Stephen Rothwell Date: Thu, 30 Aug 2018 21:47:28 +0000 (+1000) Subject: disable stringop truncation warnings for now X-Git-Tag: submit/tizen/20191230.065651~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F220295%2F1;p=profile%2Fwearable%2Fplatform%2Fkernel%2Flinux-3.18-exynos7270.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 [sw0312.kim: cherry-pick stable linux-3.18.y commit de050e1a28fe for gcc 9 build] Signed-off-by: Seung-Woo Kim Change-Id: I8b734501ad0e49aebb30feb3c066f6b16b435465 --- diff --git a/Makefile b/Makefile index 3201c5990e0..af0ad9be835 100644 --- a/Makefile +++ b/Makefile @@ -763,6 +763,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)