diff options
author | Max Kellermann <max@musicpd.org> | 2019-12-16 23:01:31 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-12-16 23:01:31 +0100 |
commit | 0cf90ee8b668ddadb7206de397070904c9437b8a (patch) | |
tree | 2bbe121227de8576f9ee2bbf56a94dab245252be | |
parent | dc3c0c88663daca8cd2302df74826681850e8445 (diff) |
decoder/mad: work around bogus -Wuninitialized in GCC 10
-rw-r--r-- | src/decoder/plugins/MadDecoderPlugin.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |