U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Compile warnings in plugin/ppm
Compile warnings in plugin/ppm [message #54756] Mon, 07 September 2020 19:35 Go to previous message
wimpie is currently offline  wimpie
Messages: 46
Registered: March 2013
Location: holland
Member
Hello

I was running clang with option "-Wall" and this caught the following :

/home/tommie/Programming/ultimatepp/uppsrc/plugin/ppm/ppm.cpp:32:18: warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare]
                if(maxval <= 0 && maxval > 65535)
                   ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/home/tommie/Programming/ultimatepp/uppsrc/plugin/ppm/ppm.cpp:27:19: warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare]
                if(size.cx <= 0 && size.cx > 99999 || size.cy <= 0 || size.cy >= 99999)
                   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~


which, I assume, is indeed not intended like this?
 
Read Message
Read Message
Previous Topic: [SOLVED] Simple example for DrawPainter::Path
Next Topic: Draw linker errors with freetype 2.10.4
Goto Forum:
  


Current Time: Tue Apr 28 20:33:58 GMT+2 2026

Total time taken to generate the page: 0.01006 seconds