From 0cf90ee8b668ddadb7206de397070904c9437b8a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 16 Dec 2019 23:01:31 +0100 Subject: [PATCH] decoder/mad: work around bogus -Wuninitialized in GCC 10 --- src/decoder/plugins/MadDecoderPlugin.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/decoder/plugins/MadDecoderPlugin.cxx b/src/decoder/plugins/MadDecoderPlugin.cxx index 66cf8fb96..649cca78c 100644 --- a/src/decoder/plugins/MadDecoderPlugin.cxx +++ b/src/decoder/plugins/MadDecoderPlugin.cxx @@ -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 {