mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
AK: Silence -Wmaybe-uninitialized warning
Adding -fno-semantic-interposition to the GCC command line caused this new warning. I don't see how output.data() could be uninitialized here. Also, commenting out the ensure_capacity() call for the Vector also gets rid of this warning.
This commit is contained in:
parent
d685db6eb6
commit
56ee4a1af2
1 changed files with 3 additions and 0 deletions
|
@ -87,7 +87,10 @@ ByteBuffer decode_base64(const StringView& input)
|
|||
output.append(out2);
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
|
||||
return ByteBuffer::copy(output.data(), output.size());
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
String encode_base64(ReadonlyBytes input)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue