aboutsummaryrefslogtreecommitdiff
path: root/tests/common/UniqueTrackablePtr.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-03-13 19:56:34 +0100
committerGitHub <noreply@github.com>2024-03-13 19:56:34 +0100
commitb705283d0e6c1619ea3e436a15d40a0670caf1a3 (patch)
tree885875957e376b5eb6a6dcc1eab3c434119eaf4a /tests/common/UniqueTrackablePtr.cpp
parent4779fa5048642b57a0f69de7ab56b9d563c1cbc4 (diff)
GCC build fix
Diffstat (limited to 'tests/common/UniqueTrackablePtr.cpp')
-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