summaryrefslogtreecommitdiffstats
path: root/modules/proxy/mod_serf.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-05-22 09:42:18 +0200
committerStefan Fritsch <sf@apache.org>2011-05-22 09:42:18 +0200
commit51226bdccafd9bfe7694b699a92c589be6beeba5 (patch)
tree9aa63c2d664f972b0bd931297478cb0acc43c11b /modules/proxy/mod_serf.c
parentmod_charset_lite: (diff)
downloadapache2-51226bdccafd9bfe7694b699a92c589be6beeba5.tar.xz
apache2-51226bdccafd9bfe7694b699a92c589be6beeba5.zip
Fix various "variable 'x' set but not used" warnings.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1125877 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/mod_serf.c')
-rw-r--r--modules/proxy/mod_serf.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/proxy/mod_serf.c b/modules/proxy/mod_serf.c
index 929ba35b44..c0fec739b7 100644
--- a/modules/proxy/mod_serf.c
+++ b/modules/proxy/mod_serf.c
@@ -380,10 +380,6 @@ static apr_status_t setup_request(serf_request_t *request,
serf_bucket_headers_setn(hdrs_bkt, "Accept-Encoding", "gzip");
if (ctx->want_ssl) {
- serf_bucket_alloc_t *req_alloc;
-
- req_alloc = serf_request_get_alloc(request);
-
if (ctx->ssl_ctx == NULL) {
*req_bkt = serf_bucket_ssl_encrypt_create(*req_bkt, NULL,
ctx->bkt_alloc);
@@ -442,7 +438,6 @@ static int drive_serf(request_rec *r, serf_config_t *conf)
/* XXXXX: make persistent/per-process or something.*/
serf_context_t *serfme;
serf_connection_t *conn;
- serf_request_t *srequest;
serf_server_config_t *ctx =
(serf_server_config_t *)ap_get_module_config(r->server->module_config,
&serf_module);
@@ -598,8 +593,8 @@ static int drive_serf(request_rec *r, serf_config_t *conf)
closed_connection, baton,
pool);
- srequest = serf_connection_request_create(conn, setup_request,
- baton);
+ /* XXX: Is it correct that we don't use the returned serf_request_t? */
+ serf_connection_request_create(conn, setup_request, baton);
if (mpm_supprts_serf) {
return SUSPENDED;