summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorStephen Rothwell2018-08-30 23:47:28 +0200
committerLinus Torvalds2018-08-31 03:15:34 +0200
commit217c3e0196758662aa0429863b09d1c13da1c5d6 (patch)
tree393862fb559905ec54a5a130ec665c716b48f6b4 /Makefile
parentMerge tag 'pm-4.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafa... (diff)
downloadkernel-qcow2-linux-217c3e0196758662aa0429863b09d1c13da1c5d6.tar.gz
kernel-qcow2-linux-217c3e0196758662aa0429863b09d1c13da1c5d6.tar.xz
kernel-qcow2-linux-217c3e0196758662aa0429863b09d1c13da1c5d6.zip
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
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)