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

Re: subversion-1/svn_wc.h:1210: error: comma at end of enumerator list

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 19 Oct 2011 12:24:35 +0200

Tony Sweeney wrote on Wed, Oct 19, 2011 at 11:10:35 +0100:
> The trailing comma is explicitly invalid per ANSI C 89 (though some
> compilers, notably GCC, permitted it). C99 removes this restriction.
> It's valid everywhere without the comma, so it's perfectly safe (and
> probably desirable) to remove it.

Exactly.

If someone wants to send a patch, though, it would be nice to also fix
all other instances of a trailing comma in the C code. (There is at
least one such instance in subversion/svn/main.c.)
Received on 2011-10-19 12:25:20 CEST

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

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