From 7bb54f99060989916b31ad1eeaae82958876fa47 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Mon, 8 Nov 2021 08:58:26 +0100 Subject: [PATCH] MINOR: mux-quic: fix gcc11 warning Fix minor warnings about an unused variable. This addresses in part github issue #1445. --- src/mux_quic.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mux_quic.c b/src/mux_quic.c index d60df2b6c0..4903352766 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -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);