Skip to content

Commit

Permalink
fix: Remove false-positive warning in GCC14 (acts-project#3817)
Browse files Browse the repository at this point in the history
We had already masked this in GCC13, but it's still present in GCC14
  • Loading branch information
paulgessinger authored and Rosie-Hasan committed Nov 13, 2024
1 parent 76d103b commit 43339bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/UnitTests/Core/Surfaces/SurfaceBoundsTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ class SurfaceBoundsStub : public SurfaceBounds {
std::iota(m_values.begin(), m_values.end(), 0);
}

#if defined(__GNUC__) && __GNUC__ == 13 && !defined(__clang__)
#if defined(__GNUC__) && (__GNUC__ == 13 || __GNUC__ == 14) && \
!defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
SurfaceBoundsStub(const SurfaceBoundsStub& other) = default;
#if defined(__GNUC__) && __GNUC__ == 13 && !defined(__clang__)
#if defined(__GNUC__) && (__GNUC__ == 13 || __GNUC__ == 14) && \
!defined(__clang__)
#pragma GCC diagnostic pop
#endif

Expand Down

0 comments on commit 43339bf

Please sign in to comment.