GCC build fix

(cherry picked from commit b705283d0e)
This commit is contained in:
Shauren
2024-03-13 19:56:34 +01:00
parent a79b42bf68
commit 08c293462f

View File

@@ -106,7 +106,7 @@ TEST_CASE("Trinity::unique_weak_ptr", "[UniqueTrackablePtr]")
}
// disable warning about invalid reinterpret_cast, test intentionally tests this
#if TRINITY_COMPILER == TRINITY_COMPILER_GNU
#ifdef __clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wreinterpret-base-class"
#endif
@@ -160,6 +160,6 @@ TEST_CASE("Trinity::unique_strong_ref_ptr type casts", "[UniqueTrackablePtr]")
}
}
#if TRINITY_COMPILER == TRINITY_COMPILER_GNU
#ifdef __clang__
#pragma GCC diagnostic pop
#endif