Also disable deprecation warnings in Obj-C++ code under OS X

Extend the changes of 2ad61b03a8 to Obj-C++
code, the intention was always to suppress all of them.
This commit is contained in:
Vadim Zeitlin
2016-03-20 17:02:06 +01:00
parent 2392423f39
commit f973ebe2d5
2 changed files with 6 additions and 0 deletions

2
configure vendored
View File

@@ -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

View File

@@ -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