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

Re: svn commit: r1130512 - in /subversion/trunk/subversion: include/svn_string.h libsvn_subr/svn_string.c

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 02 Jun 2011 13:31:05 +0100

stefan2_at_apache.org writes:

> Author: stefan2
> Date: Thu Jun 2 12:24:36 2011
> New Revision: 1130512

> + * member in svn_stringbuf_t, any attempt to re-size the returned
> + * svn_string_t might invalidate the STRBUF struct. Hence, we consider
> + * the source STRBUF "consumed".
> + *
> * Modifying the string character content is fine, though.
> */
> return (const svn_string_t *)&strbuf->data;

Why the 'const' in the cast? It causes a gcc warning about discarding
qualifiers.

-- 
Philip
Received on 2011-06-02 14:31:43 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.