howto restrict Warnings to non-system files?
Ingo Krabbe
ikrabbe@earthling.net
Wed Jun 27 02:40:00 GMT 2001
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
More information about the Gcc-help
mailing list