This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: howto restrict Warnings to non-system files?
- To: Markus Werle <markus at lufmech dot rwth-aachen dot de>
- Subject: Re: howto restrict Warnings to non-system files?
- From: Ingo Krabbe <ikrabbe at earthling dot net>
- Date: Wed, 27 Jun 2001 11:47:20 +0200 (CEST)
- cc: <gcc-help at gcc dot gnu dot org>
- Reply-To: Ingo Krabbe <i dot krabbe at dokom dot net>
On Tue, 26 Jun 2001, Markus Werle wrote:
> Hi,
>
> The very useful option -Weffc++ is of no use because of millions of
> "errors" in gcc's own STL. For the normal user it would be nice to only
> hear complains about her own code.
>
> We all know that the STL sometimes needs to carefully violate
> good C++ programming practice to achieve run-time efficiency.
> (or can the STL be improved to quiet down gcc warnings? :-))
>
The gcc manual page says about this topic:
-Weffc++ (C++ only)
Warn about violations of various style guidelines from
Scott Meyers' Effective C++ books. If you use this
option, you should be aware that the standard library
headers do not obey all of these guidelines; you can
use grep -v to filter out those warnings.
So why don't you just use "grep -v" ?
CU INGO