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 #39104 is a reply to message #39103] Fri, 15 February 2013 07:41 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Wink

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
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 07:14:51 CEST 2025

Total time taken to generate the page: 0.07628 seconds