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

View File

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