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]
Other format: [Raw text]

Re: turning off warning messages in the source code


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


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