From 2ad61b03a8020220fcbed1cfa0dcc7ac7805594c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 18 Jun 2009 21:05:09 +0000 Subject: [PATCH] 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 --- configure | 6 +++++- configure.in | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/configure b/configure index d1fede1..0735848 100755 --- a/configure +++ b/configure @@ -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 diff --git a/configure.in b/configure.in index 3e0012d..2ab3ea8 100644 --- a/configure.in +++ b/configure.in @@ -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 -- 2.7.4