From 3e2fd136ffebf1c5278e4323fe5ea5ded67f3783 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 15 Sep 2018 02:04:45 +0200 Subject: [PATCH] Disable tons of warnings given during wxGTK1 build These warnings are not going to be fixed, so suppress them to at least see the other ones more clearly. --- configure | 4 ++++ configure.in | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/configure b/configure index f0e36d7ad0..33dff1cafc 100755 --- a/configure +++ b/configure @@ -38975,6 +38975,10 @@ case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in esac + if test "$WXGTK1" = "1"; then + CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations -Wno-narrowing -Wno-write-strings" + fi + if test "$WXGTK4" != 1 -a \( "$WXGTK3" = 1 -o "$wxUSE_MAC" = 1 \) ; then CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations" diff --git a/configure.in b/configure.in index bb85925eb5..76b918fbb4 100644 --- a/configure.in +++ b/configure.in @@ -7869,6 +7869,13 @@ elif test "$GXX" = yes ; then CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy" AX_CXXFLAGS_GCC_OPTION(-Woverloaded-virtual, CXXWARNINGS) + dnl there are tons of warnings when building with GTK+ 1 which are never + dnl going to get fixed, so disable them to at least see new warnings/errors + dnl more clearly + if test "$WXGTK1" = "1"; then + CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations -Wno-narrowing -Wno-write-strings" + fi + dnl when building using GTK+ 3 or Cocoa we currently get tons of deprecation dnl warnings from the standard headers -- disable them as we already know dnl that they're deprecated but we still have to use them to support older