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

Re: Patch: Make HEAD compile with standard C compiler

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2006-02-08 21:38:42 CET

On Wed, 2006-02-08 at 17:00 +0000, Julian Foad wrote:
> Malcolm Rowe wrote:
> > On Tue, Feb 07, 2006 at 02:50:15PM +0100, Rolf Kalbermatter wrote:
> >
> >>A recent change causes problems when trying to compile with Visual C 6.
> >>Variable declarations in functions need to be done before any code
> >>statements in order to compile with standard C. [...]
> >
> > Already fixed in r18380, yesterday, but thanks for the patch. [...]
>
> May I recommend that developers using recent version of GCC add
>
> -Wdeclaration-after-statement
>
> to their CFLAGS.

I'm used to bootstrapping gcc, where we have -Werror, -Wunused, etc on
by default, so it catches this stuff for me :(

I'm not sure why we don't do the same. We could rip the configure magic
that detects whether it is supported or not by the compiler directly
from gcc's configure.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 8 21:39:20 2006

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.