disable deprecation warnings when building wxMac as there are just too many of them

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-06-18 21:05:09 +00:00
parent 49d2b75d53
commit 2ad61b03a8
2 changed files with 13 additions and 1 deletions

6
configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh
# From configure.in Id: configure.in 60979 2009-06-10 14:56:18Z VZ .
# From configure.in Id: configure.in 60981 2009-06-10 15:07:03Z VZ .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
#
@ -47144,6 +47144,10 @@ case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
;;
esac
if test "$wxUSE_MAC" = 1 ; then
CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
fi
fi

View File

@ -7417,6 +7417,14 @@ if test "x$INTELCXX" = "xyes" ; then
elif test "$GXX" = yes ; then
CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
AX_CXXFLAGS_GCC_OPTION(-Woverloaded-virtual, CXXWARNINGS)
dnl when building under Mac we currently get hundreds of deprecation
dnl warnings for Carbon symbols from the standard headers -- disable them
dnl as we already know that they're deprecated and nothing else can be seen
dnl with these warnings on
if test "$wxUSE_MAC" = 1 ; then
CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
fi
fi