From: Rainer Jung Date: Tue, 19 Jan 2016 11:51:31 +0000 (+0000) Subject: Silence compiler warning (twice): X-Git-Tag: 2.5.0-alpha~2374 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27a0d082352ab5a7d8608b55323516212db08a77;p=apache Silence compiler warning (twice): variable 'v' set but not used git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725482 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_hcheck.c b/modules/proxy/mod_proxy_hcheck.c index 3fc61a4f12..665c6fc892 100644 --- a/modules/proxy/mod_proxy_hcheck.c +++ b/modules/proxy/mod_proxy_hcheck.c @@ -202,9 +202,8 @@ static const char *set_hc_condition(cmd_parms *cmd, void *dummy, const char *arg condition->name = apr_pstrdup(ctx->p, name); condition->expr = ap_expr_parse_cmd(cmd, expr, 0, &err, NULL); if (err) { - void *v; /* get rid of recently pushed (bad) condition */ - v = apr_array_pop(ctx->conditions); + apr_array_pop(ctx->conditions); return apr_psprintf(cmd->temp_pool, "Could not parse expression \"%s\": %s", expr, err); } @@ -253,9 +252,8 @@ static const char *set_hc_template(cmd_parms *cmd, void *dummy, const char *arg) err = set_worker_hc_param(ctx->p, ctx->s, NULL, word, val, template); if (err) { - void *v; /* get rid of recently pushed (bad) template */ - v = apr_array_pop(ctx->templates); + apr_array_pop(ctx->templates); return apr_pstrcat(cmd->temp_pool, "ProxyHCTemplate: ", err, " ", word, "=", val, "; ", name, NULL); } /* No error means we have a valid template */