diff --git a/configure b/configure index b3968a85bf..31ed6254ed 100755 --- a/configure +++ b/configure @@ -35715,6 +35715,8 @@ esac if test "$WXGTK3" = 1 -o "$wxUSE_MAC" = 1 ; then CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations" + + OBJCXXFLAGS="$OBJCXXFLAGS -Wno-deprecated-declarations" fi fi diff --git a/configure.in b/configure.in index 95d723a670..1290fd0f8e 100644 --- a/configure.in +++ b/configure.in @@ -7577,6 +7577,10 @@ elif test "$GXX" = yes ; then dnl other ones if test "$WXGTK3" = 1 -o "$wxUSE_MAC" = 1 ; then CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations" + + dnl CXXWARNINGS is not used for Objective-C++ code compilation, but we + dnl want to avoid these warnings in it too when building wxOSX. + OBJCXXFLAGS="$OBJCXXFLAGS -Wno-deprecated-declarations" fi fi