diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-10-05 12:07:36 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-10-09 15:05:24 -0400 |
commit | 107858d4d2ffd9f0690def5108898a8b4be70350 (patch) | |
tree | 9ef3c0114ea4345fcca2f6ab83c3db55371269c2 | |
parent | 9eba349099bdc58f3ad4e55aa2e846d6d0244f41 (diff) | |
download | mongo-107858d4d2ffd9f0690def5108898a8b4be70350.tar.gz |
SERVER-31410 Suppress problematic clang-5 warnings
-rw-r--r-- | SConstruct | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 47fb231b59b..deed445c54d 100644 --- a/SConstruct +++ b/SConstruct @@ -1999,6 +1999,18 @@ def doConfigure(myenv): # it isn't required AddToCXXFLAGSIfSupported(myenv, "-Wno-instantiation-after-specialization") + # This warning was added in clang-5 and flags many of our lambdas. Since it isn't actively + # harmful to capture unused variables we are suppressing for now with a plan to fix later. + # Additionally, this has some false-positives where removing the capture makes the code + # incorrect and fail to compile on other compilers. + # See https://bugs.llvm.org/show_bug.cgi?id=34865. + AddToCCFLAGSIfSupported(myenv, "-Wno-unused-lambda-capture") + + # This warning was added in clang-5 and incorrectly flags our implementation of + # exceptionToStatus(). See https://bugs.llvm.org/show_bug.cgi?id=34804 + AddToCCFLAGSIfSupported(myenv, "-Wno-exceptions") + + # 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. |