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

Re: svn commit: r1146492 - /subversion/trunk/subversion/include/svn_client.h

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 14 Jul 2011 04:43:13 +0300

gstein_at_apache.org wrote on Wed, Jul 13, 2011 at 21:43:48 -0000:
> Author: gstein
> Date: Wed Jul 13 21:43:48 2011
> New Revision: 1146492
>
> URL: http://svn.apache.org/viewvc?rev=1146492&view=rev
> Log:
> The public API should keep the underlying structures const to disallow
> changing "via" the const svn_client_info2_t.
>
> * include/svn_client.h:
> (svn_client_info2_t): constify the LOCK and WC_INFO members
>
> Modified:
> subversion/trunk/subversion/include/svn_client.h
>
> Modified: subversion/trunk/subversion/include/svn_client.h
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_client.h?rev=1146492&r1=1146491&r2=1146492&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/include/svn_client.h (original)
> +++ subversion/trunk/subversion/include/svn_client.h Wed Jul 13 21:43:48 2011
> @@ -5388,10 +5388,10 @@ typedef struct svn_client_info2_t
> const char *last_changed_author;
>
> /** An exclusive lock, if present. Could be either local or remote. */
> - svn_lock_t *lock;
> + const svn_lock_t *lock;
>

subversion/libsvn_client/deprecated.c: In function ‘info_from_info2’:
subversion/libsvn_client/deprecated.c:2180: warning: assignment discards qualifiers from pointer target type
Received on 2011-07-14 03:44:21 CEST

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.