[RFC] : Compiling libstdc++ with warnings on

Paolo Carlini pcarlini@suse.de
Wed Dec 14 18:46:00 GMT 2005


Paolo Carlini wrote:

>chris jefferson wrote:
>
>>Every so often someone brings up some reason libstdc++ should compile
>>with a higher warning level. I decided to see how hard it is to compile
>>the test suite with -Wextra, and got the following:
>>
>>1) There are a small number of bugs in the testsuite headers (all
>>functions without a return statement which don't return void)
>>2) A large number of "unused variables" in various tests (easy to fix
>>with the unused attribute).
>>
>Well, I must dmit that I'm quite surprised that only -Wextra catches
>that kind of problems (at -O2!)...
>  
>
In fact, the real problem is that we are missing -Wall... ;)

Anyway, the substance of the issue stay, as my opinion.

Paolo.



More information about the Libstdc++ mailing list