mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-26 03:08:59 +00:00
AK: Ignore -Wstring-op-overflow in another ByteBuffer instance
gcc 14.1 from Fedora 40 likes to warn on this on aarch64.
This commit is contained in:
parent
34892cf3c4
commit
fc7af577fc
Notes:
sideshowbarker
2024-07-17 20:22:04 +09:00
Author: https://github.com/ADKaster
Commit: fc7af577fc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/456
1 changed files with 3 additions and 0 deletions
|
@ -284,9 +284,12 @@ public:
|
||||||
|
|
||||||
void overwrite(size_t offset, void const* data, size_t data_size)
|
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
|
// make sure we're not told to write past the end
|
||||||
VERIFY(offset + data_size <= size());
|
VERIFY(offset + data_size <= size());
|
||||||
__builtin_memmove(this->data() + offset, data, data_size);
|
__builtin_memmove(this->data() + offset, data, data_size);
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
}
|
}
|
||||||
|
|
||||||
void zero_fill()
|
void zero_fill()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue