]> granicus.if.org Git - apache/commitdiff
eliminationg two compiler warnings
authorStefan Eissing <icing@apache.org>
Mon, 24 Aug 2015 13:24:24 +0000 (13:24 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 24 Aug 2015 13:24:24 +0000 (13:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1697389 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_conn.c
modules/http2/h2_switch.c

index f5a5819f8f75668d2d5f1e75cc868ee6f75cbfcf..1d644e4050a2049731f3f8486a8781a10d7bebf1 100644 (file)
@@ -46,7 +46,7 @@ static module *mpm_module;
 static module *ssl_module;
 static int checked;
 
-static void check_modules() 
+static void check_modules(void
 {
     int i;
     if (!checked) {
index 68db770adff177b66c0408b5e98dcac37f73b78b..2f35bfb704517e9d0101f80db8f00bf87a629d1d 100644 (file)
@@ -62,7 +62,6 @@ static int h2_protocol_propose(conn_rec *c, request_rec *r,
                                const apr_array_header_t *offers,
                                apr_array_header_t *proposals)
 {
-    h2_config *cfg;
     int proposed = 0;
     const char **protos = h2_h2_is_tls(c)? h2_tls_protos : h2_clear_protos;
     
@@ -74,8 +73,6 @@ static int h2_protocol_propose(conn_rec *c, request_rec *r,
         return DECLINED;
     }
     
-    cfg = h2_config_sget(s);
-    
     if (r) {
         const char *p;
         /* So far, this indicates an HTTP/1 Upgrade header initiated