[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: Michael Sweet <mike_at_easysw.com>
Date: 2005-04-11 15:47:19 CEST

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

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 11 15:51:01 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.