消除http2中的编译警告

This commit is contained in:
zhengchao
2019-05-24 19:06:43 +08:00
parent c85b200f69
commit da010f388f

View File

@@ -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();