You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2011/02/24 09:38:26 UTC

svn commit: r1074072 - /subversion/trunk/subversion/libsvn_subr/cache-membuffer.c

Author: stefan2
Date: Thu Feb 24 08:38:25 2011
New Revision: 1074072

URL: http://svn.apache.org/viewvc?rev=1074072&view=rev
Log:
Silence compiler warnings caused by unused functions.

* subversion/libsvn_subr/cache-membuffer.c
  (svn_membuffer_cache_get_partial, svn_membuffer_cache_is_cachable):
   temporarily exclude from compilation

Suggested by: stsp

Modified:
    subversion/trunk/subversion/libsvn_subr/cache-membuffer.c

Modified: subversion/trunk/subversion/libsvn_subr/cache-membuffer.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/cache-membuffer.c?rev=1074072&r1=1074071&r2=1074072&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cache-membuffer.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cache-membuffer.c Thu Feb 24 08:38:25 2011
@@ -1217,6 +1217,11 @@ svn_membuffer_cache_iter(svn_boolean_t *
                           _("Can't iterate a membuffer-based cache"));
 }
 
+/* get_parial() and is_cachable() will become part of the svn_cache_t
+ * API soon. Disable the code for now to silence compiler warnings. */
+
+#if 0
+
 static svn_error_t *
 svn_membuffer_cache_get_partial(void **value_p,
                                 svn_boolean_t *found,
@@ -1262,6 +1267,8 @@ svn_membuffer_cache_is_cachable(void *ca
       && (size < APR_UINT32_MAX - ITEM_ALIGNMENT);
 }
 
+#endif
+
 /* the v-table for membuffer-based caches
  */
 static svn_cache__vtable_t membuffer_cache_vtable = {



Re: svn commit: r1074072 - /subversion/trunk/subversion/libsvn_subr/cache-membuffer.c

Posted by Hyrum K Wright <hy...@hyrumwright.org>.
On Thu, Feb 24, 2011 at 2:38 AM,  <st...@apache.org> wrote:
> Author: stefan2
> Date: Thu Feb 24 08:38:25 2011
> New Revision: 1074072
>
> URL: http://svn.apache.org/viewvc?rev=1074072&view=rev
> Log:
> Silence compiler warnings caused by unused functions.
>
> * subversion/libsvn_subr/cache-membuffer.c
>  (svn_membuffer_cache_get_partial, svn_membuffer_cache_is_cachable):
>   temporarily exclude from compilation

It would appear that membuffer_cache_get_partial() also falls into
this category.

-Hyrum

>...