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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user