You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2021/10/13 07:29:29 UTC

svn commit: r1894181 - /httpd/httpd/trunk/modules/http2/h2_switch.c

Author: rpluem
Date: Wed Oct 13 07:29:28 2021
New Revision: 1894181

URL: http://svn.apache.org/viewvc?rev=1894181&view=rev
Log:
* Fix compiler warning about unused variable

Modified:
    httpd/httpd/trunk/modules/http2/h2_switch.c

Modified: httpd/httpd/trunk/modules/http2/h2_switch.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/h2_switch.c?rev=1894181&r1=1894180&r2=1894181&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http2/h2_switch.c (original)
+++ httpd/httpd/trunk/modules/http2/h2_switch.c Wed Oct 13 07:29:28 2021
@@ -146,11 +146,9 @@ static int h2_protocol_switch(conn_rec *
     }
     
     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;