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
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