From: Amaury Denoyelle Date: Thu, 28 Apr 2022 12:41:50 +0000 (+0200) Subject: BUG/MINOR: mux-quic: fix build in release mode X-Git-Tag: v2.6-dev8~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b50f311c50d336b06f63f1b78eb9c5f9a8b981c3;p=thirdparty%2Fhaproxy.git BUG/MINOR: mux-quic: fix build in release mode Fix build when not using DEBUG_STRICT. 'ret' is reported as unused as it is only tested in a BUG_ON statement. --- diff --git a/src/mux_quic.c b/src/mux_quic.c index a2d84cd182..bb7d3ca271 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -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;