设置 UNUSED,修复编译警告
This commit is contained in:
@@ -210,7 +210,7 @@ struct tfe_stream_write_ctx * tfe_stream_write_frag_start(const struct tfe_strea
|
||||
{
|
||||
struct tfe_stream_private * _stream = to_stream_private(stream);
|
||||
struct tfe_stream_write_ctx ** ref_write_ctx = NULL;
|
||||
struct tfe_conn_private * this_conn = NULL;
|
||||
UNUSED struct tfe_conn_private * this_conn = NULL;
|
||||
struct tfe_conn_private * peer_conn = NULL;
|
||||
|
||||
if (dir == CONN_DIR_DOWNSTREAM)
|
||||
@@ -571,7 +571,7 @@ static void __stream_bev_readcb(struct bufferevent * bev, void * arg)
|
||||
struct tfe_stream_private * _stream = (struct tfe_stream_private *) arg;
|
||||
enum tfe_conn_dir dir = __bev_dir(_stream, bev);
|
||||
|
||||
struct tfe_conn_private * this_conn = __this_conn(_stream, dir);
|
||||
UNUSED struct tfe_conn_private * this_conn = __this_conn(_stream, dir);
|
||||
struct tfe_conn_private * peer_conn = __peer_conn(_stream, dir);
|
||||
|
||||
/* Peer connection is terminated, drain all data.
|
||||
|
||||
Reference in New Issue
Block a user