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

Re: svn commit: rev 3235 - branches/issue-749-caching/subversion/libsvn_wc

From: Michael Price <mprice_at_atl.lmco.com>
Date: 2002-09-26 21:59:35 CEST

sussman@tigris.org writes:
> Author: sussman
> Date: 2002-09-26 13:47:15 -0500 (Thu, 26 Sep 2002)
> New Revision: 3235
>
> Modified:
> branches/issue-749-caching/subversion/libsvn_wc/adm_ops.c
> Log:
>
> * adm_ops.c (svn_wc_delete): umm, don't declare a variable after a
> function call. This wouldn't compile in my gcc 2.95.4.

Because c99 support wasn't added until the 3.X series in gcc.

$ cat test.c

#include <stdio.h>

int
main()
{
    printf("just testing\n");
    int i = 0;
    return i;
}

$ gcc --version
gcc (GCC) 3.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ gcc -Wall -std=c89 -pedantic test.c
test.c: In function `main':
test.c:8: warning: ISO C89 forbids mixed declarations and code
$ gcc -Wall -std=c99 -pedantic test.c
$ ./a.out
just testing

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 26 22:01:39 2002

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