subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1302796 - /subversion/trunk/subversion/libsvn_ra_serf/util.c
Date Tue, 20 Mar 2012 08:35:46 GMT
Author: julianfoad
Date: Tue Mar 20 08:35:46 2012
New Revision: 1302796

URL: http://svn.apache.org/viewvc?rev=1302796&view=rev
Log:
* subversion/libsvn_ra_serf/util.c
  (svn_ra_serf__setup_serf_req): Move variables inside the conditional
    section that uses them, and so avoid 'unused variable' warnings.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/util.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/util.c?rev=1302796&r1=1302795&r2=1302796&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/util.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/util.c Tue Mar 20 08:35:46 2012
@@ -640,12 +640,13 @@ svn_ra_serf__setup_serf_req(serf_request
 {
   serf_bucket_alloc_t *allocator = serf_request_get_alloc(request);
   serf_bucket_t *hdrs_bkt;
+
+#if SERF_VERSION_AT_LEAST(1, 1, 0)
   svn_spillbuf_t *buf;
 
   /* ### this should be passed  */
   apr_pool_t *scratch_pool = conn->session->pool;
 
-#if SERF_VERSION_AT_LEAST(1, 1, 0)
   if (conn->http10 && body_bkt != NULL)
     {
       /* Ugh. Use HTTP/1.0 to talk to the server because we don't know if



Mime
View raw message