G++ warning


#1


Compiling juce_graphics.cpp
In file included from JuceLibraryCode/modules/juce_graphics/../juce_core/juce_core.h:156:0,
                 from JuceLibraryCode/modules/juce_graphics/juce_graphics.h:28,
                 from JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:35:
JuceLibraryCode/modules/juce_graphics/../juce_core/maths/juce_MathsFunctions.h: In member function ‘virtual void juce::LowLevelGraphicsPostScriptRenderer::restoreState()’:
JuceLibraryCode/modules/juce_graphics/../juce_core/maths/juce_MathsFunctions.h:229:97: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
 


#2

Huh? I can't see where that error is coming from.. It's complaining about the use of jlimit with some kind of value, but LowLevelGraphicsPostScriptRenderer::restoreState doesn't call jlimit anywhere..?


#3

Yep, I have so this as well when compiling with gcc with -O3, -Wextra. With -O0 there is no such message. And after commenting-out this part of code GCC complains in even more places than one.