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

Re: [PATCH] Fix compiler warning of 'incompatible pointer type'

From: Daniel Rall <dlr_at_finemaltcoding.com>
Date: 2007-09-11 11:18:06 CEST

I committed a similar fix a few minutes ago (r26534).

On Sep 10, 2007, at 11:39 PM, Senthil Kumaran S wrote:

> Hi,
>
> I am attaching a patch for fixing the compiler warning of
> 'incompatible pointer type' along with this mail.
>
> [[[
> Fix compiler warning of 'incompatible pointer type'.
>
> * subversion/libsvn_wc/update_editor.c
> (open_root): Mark the entry pointer as const.
>
> Patch by: Senthil Kumaran <senthil@collab.net>
> ]]]
>
> Thank You.
>
> --
> Senthil Kumaran S
> http://www.stylesen.org/
> Index: subversion/libsvn_wc/update_editor.c
> ===================================================================
> --- subversion/libsvn_wc/update_editor.c (revision 26532)
> +++ subversion/libsvn_wc/update_editor.c (working copy)
> @@ -995,7 +995,8 @@
> {
> /* For an update with a NULL target, this is equivalent to
> open_dir(): */
> svn_wc_adm_access_t *adm_access;
> - svn_wc_entry_t tmp_entry, *entry;
> + const svn_wc_entry_t *entry;
> + svn_wc_entry_t tmp_entry;
> apr_uint64_t flags = SVN_WC__ENTRY_MODIFY_REVISION |
> SVN_WC__ENTRY_MODIFY_URL | SVN_WC__ENTRY_MODIFY_INCOMPLETE;

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 11 11:07:36 2007

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.