]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: fix gcc11 warning
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 8 Nov 2021 07:58:26 +0000 (08:58 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 8 Nov 2021 07:59:30 +0000 (08:59 +0100)
Fix minor warnings about an unused variable.

This addresses in part github issue #1445.

src/mux_quic.c

index d60df2b6c075c360d19321dd0c95758c7e30d964..4903352766351c03db03d77145917ee5335e8a00 100644 (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);