Skip to content

Commit

Permalink
GCC build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren authored Mar 13, 2024
1 parent 4779fa5 commit b705283
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/common/UniqueTrackablePtr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit b705283

Please sign in to comment.