From: Yann Ylavic Date: Mon, 29 Feb 2016 21:45:24 +0000 (+0000) Subject: Avoid compiler (gcc-5.3.1) warning on unused variable. X-Git-Tag: 2.5.0-alpha~1994 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36f8375ec27018e07ba30905e1f5c1190893fc6e;p=apache Avoid compiler (gcc-5.3.1) warning on unused variable. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1732953 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_hcheck.c b/modules/proxy/mod_proxy_hcheck.c index 81a2a3eaa5..db17daef57 100644 --- a/modules/proxy/mod_proxy_hcheck.c +++ b/modules/proxy/mod_proxy_hcheck.c @@ -582,13 +582,12 @@ static int hc_read_headers(sctx_t *ctx, request_rec *r) "%s", buffer); /* for the below, see ap_proxy_http_process_response() */ if (apr_date_checkmask(buffer, "HTTP/#.# ###*")) { - int major, minor; + int major; char keepchar; int proxy_status = OK; const char *proxy_status_line = NULL; major = buffer[5] - '0'; - minor = buffer[7] - '0'; if ((major != 1) || (len >= sizeof(buffer)-1)) { return !OK; }