This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] : Compiling libstdc++ with warnings on
- From: Paolo Carlini <pcarlini at suse dot de>
- To: chris jefferson <caj at cs dot york dot ac dot uk>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 14 Dec 2005 19:43:31 +0100
- Subject: Re: [RFC] : Compiling libstdc++ with warnings on
- References: <43A064DB.1050904@cs.york.ac.uk>
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.