[ox/std] Ignore broken GCC warning
All checks were successful
Build / build (push) Successful in 1m24s

This commit is contained in:
2025-09-20 13:54:58 -05:00
parent 53446cfa1d
commit 7b5c760974

View File

@@ -57,7 +57,14 @@ struct VectorAllocator {
if (cap <= m_data.size() && count <= m_data.size()) {
for (auto i = 0u; i < count; ++i) {
auto const srcItem = std::launder(reinterpret_cast<T*>(&src->m_data[i]));
#if defined(__GNUC__) && __GNUC__ >= 12
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow="
#endif
new (&m_data[i]) T(std::move(*srcItem));
#if defined(__GNUC__) && __GNUC__ >= 12
#pragma GCC diagnostic pop
#endif
}
if (count) {
*items = std::launder(reinterpret_cast<T*>(m_data.data()));