summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlya Berciu <alya.berciu@mongodb.com>2019-07-09 14:58:27 -0400
committerAlya Berciu <alya.berciu@mongodb.com>2019-07-11 17:56:54 -0400
commitd7d9b79ae30cd3a7e35beaae7ce9fdc016e4bd17 (patch)
tree6821bd0b0f585295902fe026ee349688244f17fe
parentd75af1030805a98ac7482fa7c6ceb6667cbe7f21 (diff)
downloadmongo-d7d9b79ae30cd3a7e35beaae7ce9fdc016e4bd17.tar.gz
SERVER-41570 Suppress Xcode 11 deleted default function warnings
-rw-r--r--SConstruct6
1 files changed, 5 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 96a4db1574d..7c2d37d6150 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1650,7 +1650,7 @@ elif env.TargetOSIs('freebsd'):
env.Append( CCFLAGS=[ "-fno-omit-frame-pointer" ] )
elif env.TargetOSIs('darwin'):
- env.Append( LIBS=["resolv"] )
+ env.Append( LIBS=["resolv"] )
elif env.TargetOSIs('openbsd'):
env.Append( LIBS=[ "kvm" ] )
@@ -2345,6 +2345,10 @@ def doConfigure(myenv):
# Enable sized deallocation support.
AddToCXXFLAGSIfSupported(myenv, '-fsized-deallocation')
+ # This warning was added in Apple clang version 11 and flags many explicitly defaulted move
+ # constructors and assignment operators for being implicitly deleted, which is not useful.
+ AddToCXXFLAGSIfSupported(myenv, "-Wno-defaulted-function-deleted")
+
# 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.