diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-03-13 19:56:34 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-03-14 00:14:31 +0100 |
commit | 08c293462f19684cb7bbab9ce2d371cf05742c60 (patch) | |
tree | 2f10aacf8860da2a4206c8e27e1da99bf22b05ae /tests | |
parent | a79b42bf681e211997923dbc6c191aae187aded6 (diff) |
GCC build fix
(cherry picked from commit b705283d0e6c1619ea3e436a15d40a0670caf1a3)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/common/UniqueTrackablePtr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/common/UniqueTrackablePtr.cpp b/tests/common/UniqueTrackablePtr.cpp index a6de1d68ce7..12d1188a9a5 100644 --- a/tests/common/UniqueTrackablePtr.cpp +++ b/tests/common/UniqueTrackablePtr.cpp @@ -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 |