[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: GCCism's?

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-04-11 16:05:03 CEST

On Mon, 2005-04-11 at 09:47 -0400, Michael Sweet wrote:
> Max Bowsher wrote:
> > NormW wrote:
> >
> >> Greetings All,
> >> Recent 'builds' of SVN 1.2-rc1 for NetWare fail with the following
> >> 'errors'. The first one (fs_fs.c) has been 'updated' in trunk, but I
> >> note the attached log reference to a GCCism (Revision 13954), which I
> >> take to understand in a negative light.
> >> As the list below shows, there are further instances of that construct
> >> still extant in the files noted, if they also need to be attended.
> >
> >
> > Ah, thanks!
> >
> > For reference, we aim to be compilable on any compiler supporting plain
> > C89 - though an awful lot of people do use GCC, so GCCisms occasionally
> > creep in.
> > Fixing now.
>
> FWIW, I added the GCC "-ansi" option to the ESP Ghostscript configure
> script in our latest fork of GPL Ghostscript 8.15 to catch this sort
> of thing; these three lines are all that are needed:
>
> if test -n "$GCC"; then
> CFLAGS="-ansi $CFLAGS"
> fi
>

The other, more clear option, is -std=<standard name>, where standard
name is gnu, c99, c89, etc.

-ansi is current equivalent to -std=c89, but i don't believe it will
stay that way forever :)

--Dan <--- gcc hacker

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 11 16:06:52 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.