You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by lg...@apache.org on 2010/08/28 11:23:16 UTC

svn commit: r990330 - /subversion/branches/performance/subversion/libsvn_subr/cache-memcache.c

Author: lgo
Date: Sat Aug 28 09:23:16 2010
New Revision: 990330

URL: http://svn.apache.org/viewvc?rev=990330&view=rev
Log:
Fix GCC build by removing C++ specific syntax.

* subversion/libsvn_subr/cache-memcache.c
  (memcache_is_cachable): Name and fake use of the first function parameter.

Modified:
    subversion/branches/performance/subversion/libsvn_subr/cache-memcache.c

Modified: subversion/branches/performance/subversion/libsvn_subr/cache-memcache.c
URL: http://svn.apache.org/viewvc/subversion/branches/performance/subversion/libsvn_subr/cache-memcache.c?rev=990330&r1=990329&r2=990330&view=diff
==============================================================================
--- subversion/branches/performance/subversion/libsvn_subr/cache-memcache.c (original)
+++ subversion/branches/performance/subversion/libsvn_subr/cache-memcache.c Sat Aug 28 09:23:16 2010
@@ -266,8 +266,10 @@ memcache_iter(svn_boolean_t *completed,
 }
 
 static svn_boolean_t
-memcache_is_cachable(void *, apr_size_t size)
+memcache_is_cachable(void *unused, apr_size_t size)
 {
+  (void)unused;  /* silence gcc warning. */
+
   /* The memcached cutoff seems to be a bit (header length?) under a megabyte.
    * We round down a little to be safe.
    */