设置 UNUSED,修复编译警告

This commit is contained in:
luwenpeng
2019-09-02 11:39:19 +08:00
parent 4f71023c54
commit 06fe5652c5
6 changed files with 21 additions and 21 deletions

View File

@@ -190,7 +190,7 @@ struct ssl_policy_enforcer* ssl_policy_enforcer_create(void* logger)
enforcer->maat=g_business_maat;
enforcer->logger=logger;
enforcer->table_id=Maat_table_register(enforcer->maat, "PXY_INTERCEPT_COMPILE");
int ret=Maat_plugin_EX_register(enforcer->maat,
UNUSED int ret=Maat_plugin_EX_register(enforcer->maat,
enforcer->table_id,
intercept_param_new_cb,
intercept_param_free_cb,

View File

@@ -39,7 +39,7 @@ static int mr4_ethdev_send_finish(struct traffic_mirror_ethdev * ethdev, unsigne
assert(detail_mr4 != NULL && detail_mr4->sendbuf[tid] != NULL);
marsio_buff_t * buff = detail_mr4->sendbuf[tid];
char * append_ptr = marsio_buff_append(buff, pktlen);
UNUSED char * append_ptr = marsio_buff_append(buff, pktlen);
assert(append_ptr != NULL);
int ret = marsio_send_burst_with_options(detail_mr4->sendpath, tid, &buff, 1, MARSIO_SEND_OPT_REHASH);