Silence compiler warning (twice):
authorRainer Jung <rjung@apache.org>
Tue, 19 Jan 2016 11:51:31 +0000 (11:51 +0000)
committerRainer Jung <rjung@apache.org>
Tue, 19 Jan 2016 11:51:31 +0000 (11:51 +0000)
variable 'v' set but not used

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725482 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_hcheck.c

index 3fc61a4f12fddfae93a05267d93fce92f37bde99..665c6fc892d09dc0f554e57b7f8d4e4bf9de359a 100644 (file)
@@ -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 */