G++ warning with MP3 format


Hello! I just ran into an error and was busy with it the last two days. I compile with the JUCE_USE_MP3AUDIOFORMAT flag, and I get the following warning:

... /JuceLibraryCode/modules/juce_audio_formats/codecs/juce_MP3AudioFormat.cpp:1616:71: warning: operation on '((juce::MP3Decoder::MP3Stream*)this)->juce::MP3Decoder::MP3Stream::frameSize' may be undefined [-Wsequence-point]

After extended examination of my code and forums I checked the aforementioned line of code finally:

frameSize = sideInfoSize = dataSize = frameSize = bitIndex = 0;

The reason of the warning is that frameSize is set twice between two sequence point, causing undefined behaviour.


Thanks! Looks like a typo, I'll sort that out!