turning off warning messages in the source code

Ciaran O'Riordan ciaran_o_riordan@hotmail.com
Thu Oct 3 18:30:00 GMT 2002


>Are there any id numbers for the warning messages to turn them off in
>the source code (like #pragma set woff _warning_number_ ) ?

I'm pretty sure this feature doesn't exist.  If it were it
wouldn't be implemented with #pragma instructions. (the GCC team
don't like them.)

What you can do is specify the warnings you _do_ want instead
of just using -Wall.  You'll have to read bits of the GCC
manual to decide what flags you want to use.  This sounds like
a pain but once you have your list of compile options just
stick them in a script or your Makefile and you won't have
to think about it again.

Hope this helps

Ciaran O'Riordan


_________________________________________________________________
Join the worldÂ’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com



More information about the Gcc-help mailing list