From dc3e8973c9900c97a773997a3e8b93ec68f875c4 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 24 Aug 2015 13:24:24 +0000 Subject: [PATCH] eliminationg two compiler warnings git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1697389 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_conn.c | 2 +- modules/http2/h2_switch.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/http2/h2_conn.c b/modules/http2/h2_conn.c index f5a5819f8f..1d644e4050 100644 --- a/modules/http2/h2_conn.c +++ b/modules/http2/h2_conn.c @@ -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) { diff --git a/modules/http2/h2_switch.c b/modules/http2/h2_switch.c index 68db770adf..2f35bfb704 100644 --- a/modules/http2/h2_switch.c +++ b/modules/http2/h2_switch.c @@ -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 -- 2.50.1