aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-03-13 19:56:34 +0100
committerfunjoker <funjoker109@gmail.com>2024-03-25 20:21:44 +0100
commit5d819786c05b57bfad0ad980f688c176a8ec60dc (patch)
treed54b777f98346904e967ea84b84e1430e2a98798 /tests
parent64724464407e5b7646a48e6a5191d6fd8997ac77 (diff)
GCC build fix
(cherry picked from commit b705283d0e6c1619ea3e436a15d40a0670caf1a3)
Diffstat (limited to 'tests')
-rw-r--r--tests/common/UniqueTrackablePtr.cpp4
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