mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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
Notes:
sideshowbarker
2024-07-18 18:45:21 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/56ee4a1af27 Pull-request: https://github.com/SerenityOS/serenity/pull/6803 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/awesomekling
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…
Reference in a new issue