]> granicus.if.org Git - apache/commitdiff
Fix warning: variable 'rv' set but not used.
authorGraham Leggett <minfrin@apache.org>
Mon, 19 Dec 2011 16:20:26 +0000 (16:20 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 19 Dec 2011 16:20:26 +0000 (16:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1220826 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/event/event.c

index 2949b333227d6288541c6d87ad83b5ce0c80a9a6..d7826199a9e6f81a61807062402b9c9f61b2cded 100644 (file)
@@ -810,7 +810,6 @@ static void process_pollop(pollset_op_t *op)
  */
 static int start_lingering_close(event_conn_state_t *cs, ap_equeue_t *eq)
 {
-    apr_status_t rv;
 
     cs->c->sbh = NULL;  /* prevent scoreboard updates from the listener 
                          * worker will loop around soon and set SERVER_READY
@@ -833,8 +832,15 @@ static int start_lingering_close(event_conn_state_t *cs, ap_equeue_t *eq)
             v = &localv;
         }
 
-        rv = apr_socket_timeout_set(csd, 0);
-        AP_DEBUG_ASSERT(rv == APR_SUCCESS);
+#ifdef AP_DEBUG
+        {
+            apr_status_t rv;
+            rv = apr_socket_timeout_set(csd, 0);
+            AP_DEBUG_ASSERT(rv == APR_SUCCESS);
+        }
+#else
+        apr_socket_timeout_set(csd, 0);
+#endif
         /*
          * If some module requested a shortened waiting period, only wait for
          * 2s (SECONDS_TO_LINGER). This is useful for mitigating certain