Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix warning: variable 'rv' set but not used.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1220826 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 5581cc73e72fce46b425e8aa4dea6d6868589469 1 parent 50af4de
@minfrin minfrin authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 server/mpm/event/event.c
View
12 server/mpm/event/event.c
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.