This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Anything like #pragma warn "my message" in GCC?
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Mark Minich <mminich at tellabs dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 18 Jun 2004 11:33:55 -0500
- Subject: Re: Anything like #pragma warn "my message" in GCC?
- References: <40D31337.C25E4BA8@tellabs.com>
For GCC (at least, GCC 3.3.1):
#warning "This is a warning"
#error "This is an error"
I'm not 100% sure, but I think #warning is an extension. And #error is in
the standard.
For an "info" you may want to use this convention:
#warning "INFO: this is informative"
HTH,
--Eljay