From f973ebe2d54a509ac46a5a12e37784a57a8361fc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 20 Mar 2016 17:02:06 +0100 Subject: [PATCH] Also disable deprecation warnings in Obj-C++ code under OS X Extend the changes of 2ad61b03a8020220fcbed1cfa0dcc7ac7805594c to Obj-C++ code, the intention was always to suppress all of them. --- configure | 2 ++ configure.in | 4 ++++ 2 files changed, 6 insertions(+) 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