[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: #warning and non-GCC compilers
From: Stephan Kulow <coolo () kde ! org>
Date: 2001-04-04 20:26:50
[Download RAW message or body]
"Éric Brunet" wrote:
>
> In ens.mailing-lists.kde-devel, you wrote:
> >kde-devel@thewrittenword.com wrote:
> >>
> >> For those of you adding #warning to your code, please wrap it with:
> >>
> >> #ifdef __GNUC__
> >> #warning <blah>
> >> #endif
> >>
> >> On some non-GNU compilers, IRIX C++ in particular, #warning causes the
> >> compiler to generate an error (unknown preprocessing directive).
> >>
> >Most of them are wrapped. If you find some unwrapped, post patches. It's
> >hard to grep for unwrapped ones
>
> Maybe something like
>
> ---------------------------------------------------------------
> serifos ~ $ gcc -E -U __GNUC__ foo.c > /dev/null
> foo.c:6: warning: #warning <foo>
> serifos ~ $ cat foo.c
> #ifdef __GNUC__
> #warning <blah>
> #endif
>
>
> #warning <foo>
> serifos ~ $
> ---------------------------------------------------------------
> would do the job ?
>
Whoever wants to do that for all files respecting the includes files, etc.
kde-devel's compiler will error anyway, so he's in the lucky position to
know it exactly and is able to send patches in using cvs diff
Greetings, Stephan
--
Teigwaren heissen Teigwaren, weil sie Teig waren * J. v. d. Lippe
MFCH
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic