Re: Anything like #pragma warn "my message" in GCC?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mark Minich <mminich@xxxxxxxxxxx> 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"
>
> or
>
> #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.

-- 
	Falk

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux