This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: howto restrict Warnings to non-system files?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]