MINOR: mux-quic: fix gcc11 warning

Fix minor warnings about an unused variable.

This addresses in part github issue #1445.
This commit is contained in:
Amaury Denoyelle 2021-11-08 08:58:26 +01:00
parent 3cae4049b0
commit 7bb54f9906
1 changed files with 5 additions and 3 deletions

View File

@ -1347,18 +1347,20 @@ static int qc_send(struct qcc *qcc)
static struct task *qc_io_cb(struct task *t, void *ctx, unsigned int status)
{
struct qcc *qcc = ctx;
int ret = 0;
//int ret = 0;
if (!(qcc->wait_event.events & SUB_RETRY_SEND))
ret = qc_send(qcc);
//ret = qc_send(qcc);
qc_send(qcc);
#if 0
if (!(qcc->wait_event.events & SUB_RETRY_RECV))
ret |= qc_recv(qcc);
#endif
// TODO redefine the proper condition here
//if (ret || qcc->rx.inmux)
ret = qc_process(qcc);
//ret = qc_process(qcc);
qc_process(qcc);
leave:
TRACE_LEAVE(QC_EV_QCC_WAKE);