From fc7af577fca1e7ceea6977f074a0110e7c6526bb Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sat, 6 Jul 2024 06:24:08 -0600 Subject: [PATCH] AK: Ignore -Wstring-op-overflow in another ByteBuffer instance gcc 14.1 from Fedora 40 likes to warn on this on aarch64. --- AK/ByteBuffer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AK/ByteBuffer.h b/AK/ByteBuffer.h index f1d57e3e332..15f2aa7638b 100644 --- a/AK/ByteBuffer.h +++ b/AK/ByteBuffer.h @@ -284,9 +284,12 @@ public: void overwrite(size_t offset, void const* data, size_t data_size) { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overflow" // make sure we're not told to write past the end VERIFY(offset + data_size <= size()); __builtin_memmove(this->data() + offset, data, data_size); +#pragma GCC diagnostic pop } void zero_fill()