From da010f388f0e3439bea2f9309fdbc06f2f987a95 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Fri, 24 May 2019 19:06:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4http2=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/protocol/http2/src/http2_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/protocol/http2/src/http2_plugin.cpp b/plugin/protocol/http2/src/http2_plugin.cpp index db88d66..2827ebd 100644 --- a/plugin/protocol/http2/src/http2_plugin.cpp +++ b/plugin/protocol/http2/src/http2_plugin.cpp @@ -59,7 +59,7 @@ void load_logging_conf(const char *config) return; } -static void http2_plugin_timer_gc_cb(evutil_socket_t fd, short what, void * arg) +UNUSED static void http2_plugin_timer_gc_cb(evutil_socket_t fd, short what, void * arg) { struct tfe_session_info_t *session_info = (struct tfe_session_info_t *)arg; sess_data_ctx_fini(session_info, NULL, session_info->thread_id); @@ -68,7 +68,7 @@ static void http2_plugin_timer_gc_cb(evutil_socket_t fd, short what, void * arg) static int http2_plugin_init(struct tfe_proxy * proxy) { - Http2Plugin *plugin = http2_plugin(); + UNUSED Http2Plugin *plugin = http2_plugin(); unsigned int thread_nu = tfe_proxy_get_work_thread_count();