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

Re: [patch] Add -std=c89 to CFLAGS for gcc

From: Eric Gillespie <epg_at_google.com>
Date: 2007-08-31 02:51:39 CEST

Daniel Rall <dlr@finemaltcoding.com> writes:

> How about this patch, then?
>
> [[[
> * configure.in
> (CFLAGS): Add -std=c89 when gcc is detected.
> ]]]

+1 from me. I avoid the problem by using gcc 2.95 (the last good
version! >hide from dannyb<).

> Index: configure.in
> ===================================================================
> --- configure.in (revision 26401)
> +++ configure.in (working copy)
> @@ -25,6 +25,10 @@
> # Look for a C compiler (before anything can set CFLAGS)
> AC_PROG_CC
> +if test "$GCC" = "yes"; then
> + CFLAGS="$CFLAGS -std=c89"
> +fi
> +
> # Look for a C pre-processor
> AC_PROG_CPP
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 31 02:49:36 2007

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.