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 next message
wimpie is currently offline  wimpie
Messages: 34
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?
Re: Compile warnings in plugin/ppm [message #54764 is a reply to message #54756] Wed, 09 September 2020 12:18 Go to previous message
mirek is currently offline  mirek
Messages: 12716
Registered: November 2005
Ultimate Member
You are absolutely right, thanks, fixed in trunk.
Previous Topic: [SOLVED] Simple example for DrawPainter::Path
Next Topic: Drawing / Painter Difference,Usage,Manual
Goto Forum:
  


Current Time: Sun Sep 27 23:04:52 CEST 2020

Total time taken to generate the page: 0.00876 seconds