From 27cf73acab8959831ca0de5834ebf536d1a3964a Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 2 Oct 2016 20:13:02 +0200 Subject: [PATCH] suppress warning caused by shiboken header file with gcc --- src/Gui/WidgetFactory.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Gui/WidgetFactory.cpp b/src/Gui/WidgetFactory.cpp index 31dda3ab3..a5836c0b1 100644 --- a/src/Gui/WidgetFactory.cpp +++ b/src/Gui/WidgetFactory.cpp @@ -40,6 +40,11 @@ #endif #endif +#ifdef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-parameter" +#endif + #ifdef HAVE_SHIBOKEN # undef _POSIX_C_SOURCE # undef _XOPEN_SOURCE @@ -56,6 +61,10 @@ PyTypeObject** SbkPySide_QtGuiTypes=NULL; # endif #endif +#ifdef __GNUC__ +# pragma GCC diagnostic pop +#endif + #include #include #include