Avoid warnings from gtk.h in the widgets sample

Ignore -Wparentheses given by g++ 8 for some GTK+ 3 versions (e.g.
3.22.30 currently in Debian Sid).
This commit is contained in:
Vadim Zeitlin
2018-07-24 15:27:31 +02:00
parent 187d719071
commit a024c802b1

View File

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