Counter false positive warning for gcc 15.2 (used for MinGW CI)

This commit is contained in:
Aaron van Geffen committed 2026-06-27 15:57:49 +02:00
1 parent d543de0807
commit cfadbe53e8
1 file changed
+11
+11
View File
@@ -14,6 +14,13 @@
enum class ModalResult : int8_t;
// Counter false positive around EditorScene, needed for gcc 15.2 (used for MinGW CI)
#ifdef __WARN_SUGGEST_FINAL_METHODS__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsuggest-final-methods"
#pragma GCC diagnostic ignored "-Wsuggest-final-types"
#endif
namespace OpenRCT2
{
class EditorScene : public Scene
@@ -42,3 +49,7 @@ namespace OpenRCT2
void clearFinances();
};
} // namespace OpenRCT2
#ifdef __WARN_SUGGEST_FINAL_METHODS__
#pragma GCC diagnostic pop
#endif