This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: non-c89 code in bitmap.c
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: non-c89 code in bitmap.c
- From: Stan Shebs <shebs at apple dot com>
- Date: Fri, 22 Jun 2001 17:01:12 -0700
- CC: dalej at apple dot com, gcc-patches at gcc dot gnu dot org
- References: <20010623003548.A10111@daikokuya.demon.co.uk>
Neil Booth wrote:
>
> dalej@apple.com wrote:-
>
> > My understanding is that the code is supposed to be c89. Some that
> > isn't has crept into bitmap.c recently; here is a fix. OK?
> >
> > 2001-06-22 Dale Johannesen <dalej@apple.com>
> >
> > * bitmap.c: fix a non-c89 usage (null actual argument to macro)
>
> I've wondered for a while whether to get CPP to warn about this with
> -pedantic for pre-C99. I've refrained because I think we can get too
> heavy with these warnings, and I've not yet come across a compiler
> that refuses empty arguments. I imagine you have?
Yeah, Apple's pch-using preprocessor cpp-precomp is lacking most C99
features. I looked at adding empty argument handling to cpp-precomp
last year, but it was going to be way more hacking on ancient non-free
software than I really wanted to do.
Stan