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]

-Weffc++ and STL


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&)'



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