Avoid some deprecation warnings from GTK2 headers

This commit is contained in:
Paul Cornett
2020-04-19 11:09:09 -07:00
parent 6bafaeee6f
commit 8649f2548e
3 changed files with 9 additions and 1 deletions

View File

@@ -143,10 +143,12 @@ protected:
#elif defined(__WXGTK__)
// Avoid a bunch of warnings from gtk.h for some GTK+ 3 versions.
// Avoid a bunch of warnings from gtk.h for some GTK+ versions.
wxGCC_WARNING_SUPPRESS(deprecated-declarations)
wxGCC_WARNING_SUPPRESS(parentheses)
#include <gtk/gtk.h>
wxGCC_WARNING_RESTORE(parentheses)
wxGCC_WARNING_RESTORE(deprecated-declarations)
class NativeWindow : public wxNativeWindow
{