[RFC] : Compiling libstdc++ with warnings on

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


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!)...

Paolo.



More information about the Libstdc++ mailing list