decoder/mad: work around bogus -Wuninitialized in GCC 10

This commit is contained in:
Max Kellermann 2019-12-16 23:01:31 +01:00
parent dc3c0c8866
commit 0cf90ee8b6
1 changed files with 5 additions and 0 deletions

View File

@ -719,6 +719,11 @@ MadDecoder::DecodeFirstFrame(Tag *tag) noexcept
{
struct xing xing;
#if GCC_CHECK_VERSION(10,0)
/* work around bogus -Wuninitialized in GCC 10 */
xing.frames = 0;
#endif
while (true) {
MadDecoderAction ret;
do {