diff --git a/source/tools/atlas/AtlasScript/ScriptInterface.cpp b/source/tools/atlas/AtlasScript/ScriptInterface.cpp index f2eb0f6711..48a0dc5ab9 100644 --- a/source/tools/atlas/AtlasScript/ScriptInterface.cpp +++ b/source/tools/atlas/AtlasScript/ScriptInterface.cpp @@ -27,6 +27,10 @@ # pragma warning(disable:4996) // deprecated CRT #endif +#if defined(__GNUC__) && (__GNUC__*100 + __GNUC_MINOR__) >= 402 // (older GCCs don't support this pragma) +# pragma GCC diagnostic ignored "-Wredundant-decls" // triggered by wx/geometry.h +#endif + #include "wx/wx.h" #include "GameInterface/Shareable.h" diff --git a/source/tools/atlas/AtlasUI/Misc/precompiled.h b/source/tools/atlas/AtlasUI/Misc/precompiled.h index 9fb1d980e9..7b75eb8721 100644 --- a/source/tools/atlas/AtlasUI/Misc/precompiled.h +++ b/source/tools/atlas/AtlasUI/Misc/precompiled.h @@ -39,6 +39,10 @@ # define WIN32_LEAN_AND_MEAN #endif +#if defined(__GNUC__) && (__GNUC__*100 + __GNUC_MINOR__) >= 402 // (older GCCs don't support this pragma) +# pragma GCC diagnostic ignored "-Wredundant-decls" // triggered by wx/geometry.h +#endif + // Include useful wx headers #include "wx/wxprec.h" @@ -68,6 +72,10 @@ #include "wx/wfstream.h" #include "wx/zstream.h" +#if defined(__GNUC__) && (__GNUC__*100 + __GNUC_MINOR__) >= 402 +# pragma GCC diagnostic warning "-Wredundant-decls" // re-enable +#endif + #include #include #include