]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mux-quic: fix build in release mode
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Apr 2022 12:41:50 +0000 (14:41 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Apr 2022 12:42:39 +0000 (14:42 +0200)
Fix build when not using DEBUG_STRICT. 'ret' is reported as unused as it
is only tested in a BUG_ON statement.

src/mux_quic.c

index a2d84cd182f3c2e024d4f259bdc94464877a45b4..bb7d3ca27158a10249a344ff2409aac11b57b3e7 100644 (file)
@@ -889,7 +889,7 @@ static int _qc_send_qcs(struct qcs *qcs, struct list *frms,
                fin = !!(fin && !b_data(buf));
 
                ret = qcs_build_stream_frm(qcs, out, fin, frms);
-               BUG_ON(ret < 0); /* TODO handle this properly */
+               if (ret < 0) { ABORT_NOW(); /* TODO handle this properly */ }
        }
 
        return xfer;