From: Ruediger Pluem Date: Wed, 13 Oct 2021 07:29:28 +0000 (+0000) Subject: * Fix compiler warning about unused variable X-Git-Tag: 2.5.0-alpha2-ci-test-only~747 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=174b3abcc39018e943e2f66a31047224a9331d0a;p=thirdparty%2Fapache%2Fhttpd.git * Fix compiler warning about unused variable git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894181 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http2/h2_switch.c b/modules/http2/h2_switch.c index f0c7e4dd927..12dd3e8abf9 100644 --- a/modules/http2/h2_switch.c +++ b/modules/http2/h2_switch.c @@ -146,11 +146,9 @@ static int h2_protocol_switch(conn_rec *c, request_rec *r, server_rec *s, } if (found) { - h2_conn_ctx_t *ctx; - ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c, "switching protocol to '%s'", protocol); - ctx = h2_conn_ctx_create_for_c1(c, s, protocol); + h2_conn_ctx_create_for_c1(c, s, protocol); if (r != NULL) { apr_status_t status;