Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit d7d9b79

Browse files
committed
SERVER-41570 Suppress Xcode 11 deleted default function warnings
1 parent d75af10 commit d7d9b79

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

SConstruct

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ elif env.TargetOSIs('freebsd'):
16501650
env.Append( CCFLAGS=[ "-fno-omit-frame-pointer" ] )
16511651

16521652
elif env.TargetOSIs('darwin'):
1653-
env.Append( LIBS=["resolv"] )
1653+
env.Append( LIBS=["resolv"] )
16541654

16551655
elif env.TargetOSIs('openbsd'):
16561656
env.Append( LIBS=[ "kvm" ] )
@@ -2345,6 +2345,10 @@ def doConfigure(myenv):
23452345
# Enable sized deallocation support.
23462346
AddToCXXFLAGSIfSupported(myenv, '-fsized-deallocation')
23472347

2348+
# This warning was added in Apple clang version 11 and flags many explicitly defaulted move
2349+
# constructors and assignment operators for being implicitly deleted, which is not useful.
2350+
AddToCXXFLAGSIfSupported(myenv, "-Wno-defaulted-function-deleted")
2351+
23482352
# Check if we can set "-Wnon-virtual-dtor" when "-Werror" is set. The only time we can't set it is on
23492353
# clang 3.4, where a class with virtual function(s) and a non-virtual destructor throws a warning when
23502354
# it shouldn't.

0 commit comments

Comments
 (0)