1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix compilation with mingw GCC 12

Another case of the compiler bug found in #17371
This commit is contained in:
Michał Janiszewski
2023-04-04 08:52:12 +02:00
parent a794c982ba
commit d25fa7fe1e

View File

@@ -123,7 +123,15 @@ void Plugin::ThrowIfStopping() const
void Plugin::Unload()
{
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105937, fixed in GCC13
# if defined(__GNUC__) && !defined(__clang__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
# endif
_metadata.Main = {};
# if defined(__GNUC__) && !defined(__clang__)
# pragma GCC diagnostic pop
# endif
_hasLoaded = false;
}