From: Willy Tarreau Date: Wed, 9 Aug 2023 14:02:44 +0000 (+0200) Subject: BUILD: mux-h1: shut a build warning on clang from previous commit X-Git-Tag: v2.9-dev3~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d39a9cbd13a5e0ade1a0e69423ba0a4b61c75f7c;p=thirdparty%2Fhaproxy.git BUILD: mux-h1: shut a build warning on clang from previous commit Commit 5201b4abd ("BUG/MEDIUM: mux-h1: do not forget EOH even when no header is sent") introduced a build warning on clang due to the remaining two parenthesis in the expression. Let's fix this. No backport needed. --- diff --git a/src/mux_h1.c b/src/mux_h1.c index 680c0baa75..023bdd9d3a 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -2999,7 +2999,7 @@ static size_t h1_process_mux(struct h1c *h1c, struct buffer *buf, size_t count) total += ret; count -= ret; - if ((h1m->state == H1_MSG_DONE)) { + if (h1m->state == H1_MSG_DONE) { TRACE_USER((!(h1m->flags & H1_MF_RESP) ? "H1 request fully xferred" : "H1 response fully xferred"), H1_EV_TX_DATA, h1c->conn, h1s);