]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: tcpcheck: use __fallthrough in check_proxy_tcpcheck()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 06:10:33 +0000 (07:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 10:14:02 +0000 (11:14 +0100)
This avoids 1 build warning when preprocessing happens before compiling
with gcc >= 7.

src/tcpcheck.c

index 366a8d09cdd29f8a743fb0b275f61eed9c0efc1a..bfe3a2c631c0d8afdd5665f01a9c11b85c3a52e9 100644 (file)
@@ -3757,7 +3757,7 @@ static int check_proxy_tcpcheck(struct proxy *px)
                        next = get_next_tcpcheck_rule(&px->tcpcheck_rules, chk);
                        if (next && next->action == TCPCHK_ACT_SEND)
                                chk->connect.options |= TCPCHK_OPT_HAS_DATA;
-                       /* fall through */
+                       __fallthrough;
                case TCPCHK_ACT_ACTION_KW:
                        ha_free(&comment);
                        break;