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: Paolo Carlini <pcarlini at suse dot de>
- Cc: chris jefferson <caj at cs dot york dot ac dot uk>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 14 Dec 2005 19:47:03 +0100
- Subject: Re: [RFC] : Compiling libstdc++ with warnings on
- References: <43A064DB.1050904@cs.york.ac.uk> <43A067D3.5090300@suse.de>
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.