Home » U++ Library support » U++ Core » Gcc compile option proposal
Re: Gcc compile option proposal [message #39104 is a reply to message #39103] |
Fri, 15 February 2013 07:41   |
|
mirek wrote on Thu, 14 February 2013 23:31 | Hm, now I have checked and I am actually compiling with
-Wall -Wno-parentheses
so except that (&&) warning, which I consider really way too stupid, we are -Wall compliant.
|
OK, I could live with blacklisting the parentheses warnings. Other than that, my gcc 4.7.2 reports only one error in theide:Quote: |
/home/h/upp-production/uppsrc/ide/Help.cpp:581:10: warning: converting ‘false’ to pointer type ‘IdeDesigner*’ [-Wconversion-null]
|
With clang, it is bit worse:
$ umk uppsrc AllForI18n CLANG -ba | grep 'warning:' | sort -u | grep -o '\[-W.*\ | ' | sort | uniq -c | sort -rn"
88 [-Wlogical-op-parentheses] *
40 [-Wdangling-else] *
16 [-Woverloaded-virtual]
3 [-Wunused-private-field]
1 [-Wbitwise-op-parentheses] *
1 [-Wbool-conversion] *
1 [-Winvalid-source-encoding] *
1 [-Wmismatched-tags] *
1 [-Wtautological-compare]
1 [-Wunneeded-internal-declaration]
| Items marked with * are present by default, even without -Wall option. Numbers represents unique occurrences, the actual counts of the errors in output is even higher.
At least some of them should be fixed. I'll gladly volunteer 
Honza
|
|
|
 |
|
Gcc compile option proposal
By: Didier on Thu, 14 February 2013 19:33
|
 |
|
Re: Gcc compile option proposal
By: mirek on Thu, 14 February 2013 20:08
|
 |
|
Re: Gcc compile option proposal
|
 |
|
Re: Gcc compile option proposal
By: mirek on Thu, 14 February 2013 20:48
|
 |
|
Re: Gcc compile option proposal
By: Didier on Thu, 14 February 2013 21:10
|
 |
|
Re: Gcc compile option proposal
|
 |
|
Re: Gcc compile option proposal
By: mirek on Thu, 14 February 2013 23:01
|
 |
|
Re: Gcc compile option proposal
By: mirek on Thu, 14 February 2013 23:21
|
 |
|
Re: Gcc compile option proposal
By: mirek on Thu, 14 February 2013 23:31
|
 |
|
Re: Gcc compile option proposal
|
 |
|
Re: Gcc compile option proposal
By: mirek on Fri, 15 February 2013 08:33
|
 |
|
Re: Gcc compile option proposal
By: unodgs on Fri, 15 February 2013 11:11
|
 |
|
Re: Gcc compile option proposal
By: Didier on Fri, 15 February 2013 17:50
|
 |
|
Re: Gcc compile option proposal
|
 |
|
Re: Gcc compile option proposal
By: mirek on Sat, 16 February 2013 18:28
|
 |
|
Re: Gcc compile option proposal
By: mirek on Sat, 16 February 2013 11:16
|
 |
|
Re: Gcc compile option proposal
|
 |
|
Re: Gcc compile option proposal
By: mirek on Fri, 15 February 2013 19:25
|
Goto Forum:
Current Time: Mon Aug 04 05:01:35 CEST 2025
Total time taken to generate the page: 0.09070 seconds
|