Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Fri Apr 19 20:37:34 CEST 2024

Total time taken to generate the page: 0.03924 seconds