diff --git a/deps/oxlib/src/std/include/ox/std/vector.hpp b/deps/oxlib/src/std/include/ox/std/vector.hpp index 1115cdaf..cb5407f9 100644 --- a/deps/oxlib/src/std/include/ox/std/vector.hpp +++ b/deps/oxlib/src/std/include/ox/std/vector.hpp @@ -54,6 +54,10 @@ struct VectorAllocator { // this totally idiotic redundant check (&& count <= Size) is required to address a bug in devkitARM, // try removing it later if (!std::is_constant_evaluated()) { +#if defined(__GNUC__) && !defined(__clang__) + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstringop-overflow=" +#endif if (cap <= m_data.size() && count <= m_data.size()) { for (auto i = 0u; i < count; ++i) { auto const srcItem = std::launder(reinterpret_cast(&src->m_data[i])); @@ -65,6 +69,9 @@ struct VectorAllocator { *items = reinterpret_cast(m_data.data()); } } +#if defined(__GNUC__) && !defined(__clang__) + #pragma GCC diagnostic pop +#endif } }