This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
-Weffc++ and STL
- To: help-gcc at gnu dot org
- Subject: -Weffc++ and STL
- From: "Andy Glew" <aglew at students dot wisc dot edu>
- Date: Thu, 7 Oct 1999 22:52:12 -0500
- Newsgroups: gnu.gcc.help
- Organization: University of Wisconsin, Madison
- Xref: wodc7nx0 gnu.gcc.help:1317
I'd like to try using the -Weffc++ flag - enforcing
Scott Meyer's style - but when I enable it it
reports warnings all over the place inside the STL.
Example warnings at bottom of this message.
Q: is there any way that I can enable this warning just for my code,
and disable it for <library> headers?
In file included from /s/gcc-2.95/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/2.95/../../../../include/g++-3/stl_algobase.h:53,
from /s/gcc-2.95/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/2.95/../../../../include/g++-3/queue:30,
from sim-ag.cc:35:
/s/gcc-2.95/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/2.95/../../../../include/g++-3/iostream.h:112: warning: `class ostream' has
pointer data members
/s/gcc-2.95/sunx86_56/lib/gcc-lib/i386-pc-solaris2.6/2.95/../../../../include/g++-3/iostream.h:112: warning: but does not override
`ostream(const ostream&)'