You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@wandisco.com> on 2011/06/02 14:31:05 UTC

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

stefan2@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