]> granicus.if.org Git - apache/commitdiff
Avoid compiler (gcc-5.3.1) warning on unused variable.
authorYann Ylavic <ylavic@apache.org>
Mon, 29 Feb 2016 21:45:24 +0000 (21:45 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 29 Feb 2016 21:45:24 +0000 (21:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1732953 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_hcheck.c

index 81a2a3eaa534d5146d2c71d13a7717b7fce74a74..db17daef57c2cd6d788ffa0f58b2961527fa6718 100644 (file)
@@ -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;
         }