[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 4721 - in trunk/subversion: clients/cmdline svnversion

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2003-02-04 20:42:54 CET

Philip Martin wrote:

>The first member of svn_cl__opt_state_t is a structure, so 0 is not a
>valid initialiser
>
>../svn/subversion/clients/cmdline/main.c: In function `main':
>../svn/subversion/clients/cmdline/main.c:514: warning: missing braces around initializer
>../svn/subversion/clients/cmdline/main.c:514: warning: (near initialization for `opt_state.start_revision')
>
>I suggest either
>
> svn_cl__opt_state_t opt_state = { };
>
>or
>
> svn_cl__opt_state_t opt_state = { { 0 } };
>

damn. it worked fine on my os x box... either solution is fine with me
as long as it results in the structure being zero'd out... feel free to
commit now if you like, as i won't be able to take a look till later
tonight.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Feb 4 20:43:38 2003

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.