From 976c7f5346a06bbb4cf34e3ba85b6f6589ff6527 Mon Sep 17 00:00:00 2001 From: Mark O'Donovan Date: Thu, 3 Dec 2020 22:56:48 +0000 Subject: [PATCH] Suppress gcc warnings also in FeaturePythonPyImp.h Clang warnings are already disabled. --- src/App/FeaturePythonPyImp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App/FeaturePythonPyImp.h b/src/App/FeaturePythonPyImp.h index 5d0717ccce..8ec247fdd8 100644 --- a/src/App/FeaturePythonPyImp.h +++ b/src/App/FeaturePythonPyImp.h @@ -30,6 +30,8 @@ #if defined(__clang__) # pragma clang diagnostic push # pragma clang diagnostic ignored "-Wmissing-field-initializers" +#elif defined(__GNUC__) || defined(__GNUG__) +# pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif #define PYTHON_TYPE_DEF(_class_, _subclass_) \