From: Graham Leggett Date: Mon, 19 Dec 2011 17:16:51 +0000 (+0000) Subject: Backport: X-Git-Tag: 2.4.0~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16a2391ce7db0b8edf9baa8a357c68e08115b391;p=thirdparty%2Fapache%2Fhttpd.git Backport: 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 --- diff --git a/server/mpm/event/event.c b/server/mpm/event/event.c index b7f1d874be6..0ab822a8b4c 100644 --- a/server/mpm/event/event.c +++ b/server/mpm/event/event.c @@ -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