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 |
|
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
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 ):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
Honza
|
|
|
|
|
Problem with gcc compilers and -Wall
By: koldo on Wed, 08 September 2010 09:03
|
|
|
Re: Problem with gcc compilers and -Wall
By: dolik.rce on Wed, 08 September 2010 10:58
|
|
|
Re: Problem with gcc compilers and -Wall
By: koldo on Wed, 08 September 2010 11:12
|
|
|
Re: Problem with gcc compilers and -Wall
By: mr_ped on Thu, 09 September 2010 09:33
|
|
|
Re: Problem with gcc compilers and -Wall
By: dolik.rce on Thu, 09 September 2010 10:22
|
|
|
Re: Problem with gcc compilers and -Wall
By: koldo on Thu, 09 September 2010 10:51
|
|
|
Re: Problem with gcc compilers and -Wall
By: mr_ped on Thu, 09 September 2010 18:58
|
|
|
Re: Problem with gcc compilers and -Wall
By: dolik.rce on Thu, 09 September 2010 21:45
|
|
|
Re: Problem with gcc compilers and -Wall
By: jerson on Thu, 09 September 2010 10:13
|
|
|
Re: Problem with gcc compilers and -Wall
By: mr_ped on Thu, 09 September 2010 10:15
|
|
|
Re: Problem with gcc compilers and -Wall
By: jerson on Fri, 10 September 2010 05:11
|
|
|
Re: Problem with gcc compilers and -Wall
By: dolik.rce on Fri, 10 September 2010 12:45
|
|
|
Re: Problem with gcc compilers and -Wall
By: mdelfede on Tue, 14 September 2010 11:04
|
Goto Forum:
Current Time: Mon May 20 20:42:18 CEST 2024
Total time taken to generate the page: 0.00539 seconds
|