summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-07-25 09:05:13 -0400
committerMathias Stearn <mathias@10gen.com>2017-07-26 15:13:34 -0400
commitb35c594738261edce2134b0bc7fb3e7a06e85fc3 (patch)
treec50a5444e14d7f0dd3756e188642cac42bfe2a24 /SConstruct
parent2f81beb98df291431c36dcd5789828297b8c41a8 (diff)
downloadmongo-b35c594738261edce2134b0bc7fb3e7a06e85fc3.tar.gz
SERVER-29887 address clang-4.0 warnings in geo code
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index c56ce5edf87..d16a8fbd61f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1993,6 +1993,12 @@ def doConfigure(myenv):
# is a problem at least for the S2 headers.
AddToCXXFLAGSIfSupported(myenv, "-Wno-undefined-var-template")
+ # This warning was added in clang-4.0, but it warns about code that is required on some
+ # platforms. Since the warning just states that 'explicit instantiation of [a template] that
+ # occurs after an explicit specialization has no effect', it is harmless on platforms where
+ # it isn't required
+ AddToCXXFLAGSIfSupported(myenv, "-Wno-instantiation-after-specialization")
+
# 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
# it shouldn't.