]> granicus.if.org Git - apache/commitdiff
Backport:
authorGraham Leggett <minfrin@apache.org>
Mon, 19 Dec 2011 17:16:51 +0000 (17:16 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 19 Dec 2011 17:16:51 +0000 (17:16 +0000)
Fix warning: variable 'rv' set but not used.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1220852 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/event/event.c

index b7f1d874be6d49e6d3c95fb60584202a98aebeb9..0ab822a8b4c6a4f9196970f6e68e6f299cc7326e 100644 (file)
@@ -760,8 +760,14 @@ static int start_lingering_close(event_conn_state_t *cs)
         apr_socket_t *csd = ap_get_conn_socket(cs->c);
         struct timeout_queue *q;
 
-        rv = apr_socket_timeout_set(csd, 0);
-        AP_DEBUG_ASSERT(rv == APR_SUCCESS);
+#ifdef AP_DEBUG
+        {
+            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