From d7d9b79ae30cd3a7e35beaae7ce9fdc016e4bd17 Mon Sep 17 00:00:00 2001 From: Alya Berciu Date: Tue, 9 Jul 2019 14:58:27 -0400 Subject: SERVER-41570 Suppress Xcode 11 deleted default function warnings --- SConstruct | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- cgit v1.2.1