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:
Gunnar Beutner 2021-05-02 02:02:05 +02:00 committed by Andreas Kling
parent d685db6eb6
commit 56ee4a1af2
Notes: sideshowbarker 2024-07-18 18:45:21 +09:00

View file

@ -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)