This is the mail archive of the
mailing list for the GCC project.
Re: Anything like #pragma warn "my message" in GCC?
- From: Falk Hueffner <hueffner at informatik dot uni-tuebingen dot de>
- To: Mark Minich <mminich at tellabs dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 18 Jun 2004 18:25:54 +0200
- Subject: Re: Anything like #pragma warn "my message" in GCC?
- References: <40D31337.C25E4BA8@tellabs.com>
Mark Minich <firstname.lastname@example.org> writes:
> In some other compilers, I can output a message, warning,
> or error from the preprocessor with one of the following
> directives (which vary from one compiler to another):
> #info "my message"
> #warn "my message"
> #error "my message"
> #pragma info "my message"
> #pragma warn "my message"
> #pragma error "my message"
> ...or other similar syntax.
> I tried various combinations of these, and I looked in the
> online GNU manual under pragmas and preprocessor directives,
> but I found nothing like these.
That's weird. #error works and needs to, because the standard mandates
it. gcc also has #warning.