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 » Problem with gcc compilers and -Wall
Re: Problem with gcc compilers and -Wall [message #28660 is a reply to message #28659] Thu, 09 September 2010 21:45 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Well, then maybe -Wall -Wno-parentheses? BTW: I always thought that those extra parentheses are suggested to prevent trouble in case someone writes non-conforming compiler Smile

Also -Wno-reorder would be nice, but that would have to be set only for C++, for C files it prints out warning.

Looking at the warnings, I observed following:

There is a lot of unused-variable warnings and few unused-function. Those could be fixed easily and it might improve readability.

There are some warnings that sound pretty dangerous. Like uninitialized variables. Or even more terrifying "operation on ‘q’ may be undefined". It is not that bad in the end, it belongs to the code that is bit messy, but probably OK (as far as I can tell Smile ):
q = q > 0 ? d.name.ReverseFind(':', q) : q = d.name.ReverseFind(':');


There is also few really stupid warnings. Like "‘main’ is usually a function". I believe you don't have to be C++ wizard to know that Very Happy

Honza
 
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: Is there way to get subrange of a vector quickly?
Next Topic: Is there linked list in u++?
Goto Forum:
  


Current Time: Mon May 20 20:42:18 CEST 2024

Total time taken to generate the page: 0.00539 seconds