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 » U++ Core » Gcc compile option proposal
Re: Gcc compile option proposal [message #39101 is a reply to message #39100] Thu, 14 February 2013 23:01 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
/home/cxl/upp.src/uppsrc/Core/CharSet.h:119:54: warning: '&&' within '||' [-Wlogical-op-parentheses]
inline bool IsAlpha(int c)         { return c >= 'A' && c <= 'Z' || c >= 'a' && c <= 'z'; }
                                            ~~~~~~~~~^~~~~~~~~~~ ~~
/home/cxl/upp.src/uppsrc/Core/CharSet.h:119:54: note: place parentheses around the '&&' expression to silence this warning


Go to hell with this... I am not going to make the code unreadable.

Plus, I have a very intense feeling that even if I would screw the code and added parenthesis in this situation, one or two years later somebody would get a nice idea that there are more needed around c >= 'A' etc...

Mirek

[Updated on: Thu, 14 February 2013 23:07]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Request: completion 64 bit support in Draw and Stream
Next Topic: Core/Rpc and VC 2012
Goto Forum:
  


Current Time: Mon Aug 04 05:03:30 CEST 2025

Total time taken to generate the page: 0.08132 seconds