summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-08-13 12:44:11 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2018-08-14 14:12:19 -0400
commit168c8d65556ab18b05e33b5f4006d1184c30f8f7 (patch)
treed8e13663636c38a30b5f4f55582ff241e3fdc435 /SConstruct
parent41005a73c8534953c4627b2a9d82a776e4276f1f (diff)
downloadmongo-168c8d65556ab18b05e33b5f4006d1184c30f8f7.tar.gz
SERVER-36611 warning suppression for gcc-8.2
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 0df17d11778..31ca80632b9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -2146,6 +2146,10 @@ def doConfigure(myenv):
# exceptionToStatus(). See https://bugs.llvm.org/show_bug.cgi?id=34804
AddToCCFLAGSIfSupported(myenv, "-Wno-exceptions")
+ # These warnings begin in gcc-8.2 and we should get rid of these disables at some point.
+ AddToCCFLAGSIfSupported(env, '-Wno-format-truncation')
+ AddToCXXFLAGSIfSupported(env, '-Wno-class-memaccess')
+
# Check if we can set "-Wnon-virtual-dtor" when "-Werror" is set. The only time we can't set it is on
# clang 3.4, where a class with virtual function(s) and a non-virtual destructor throws a warning when