Disable warnings about deprecated declarations in wxGTK3 build

There are just too many of these warnings because GTK+ people are extremely
deprecation-happy and like marking functions which need to be used for the
code to work with the older GTK+ versions as deprecated. Because of this, in
many cases we have no choice but to continue to use the now deprecated
functions and the only way to avoid them is to pepper the code with the
pragmas doing this. Disabling the warning globally seems like the lesser evil
because not disabling them at all is worse than useless as the flood of the
unavoidable deprecation warnings hides any real ones that might occur.
This commit is contained in:
Vadim Zeitlin
2016-02-23 16:50:39 +01:00
parent d4edf57781
commit 36d6ddb8de
2 changed files with 7 additions and 6 deletions

2
configure vendored
View File

@@ -36039,7 +36039,7 @@ case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
esac
if test "$wxUSE_MAC" = 1 ; then
if test "$WXGTK3" = 1 -o "$wxUSE_MAC" = 1 ; then
CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations"
fi
fi