This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -Weffc++ and STL
- To: help-gcc at gnu dot org
- Subject: Re: -Weffc++ and STL
- From: "Andy Glew" <aglew at students dot wisc dot edu>
- Date: Sat, 9 Oct 1999 09:15:13 -0500
- Newsgroups: gnu.gcc.help
- Organization: University of Wisconsin, Madison
- References: <7tjpgi$10k8$1@news.doit.wisc.edu> <q1iu4irqh0.fsf@seurat.cipr.rpi.edu>
- Xref: wodc7nx0 gnu.gcc.help:1344
.> I use the -Weffc++ option and the following long grep command to
> eliminate warnings from the STL headers.
Wow!
Thanks for sharing this grep with me.
Ummm..... this strongly suggests to me
that it might be worthwhile having pragmas
to turn on and off various warnings around certain headers.
E.g.
#pragma S := present_gcc_switch_state()
#pragma set_gcc_switch_state( present_gcc_switch_state(), "-Wno-effc++" )
#include <list>
#pragma set_gcc_switch_state( S )
although I am aware of how GCC likes to play games with pragmas