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: -Weffc++ and STL


.> 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



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