From a024c802b1027931ffa721d67d44cad85869f11e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 24 Jul 2018 15:27:31 +0200 Subject: [PATCH] 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). --- samples/widgets/native.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/widgets/native.cpp b/samples/widgets/native.cpp index 2bf606ac46..ba2cbd6b5f 100644 --- a/samples/widgets/native.cpp +++ b/samples/widgets/native.cpp @@ -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 +wxGCC_WARNING_RESTORE(parentheses) class NativeWindow : public wxNativeWindow {