From f3f60763fab8f8950148573736f5fbe77cd1bf32 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 14 Nov 2022 07:10:33 +0100 Subject: [PATCH] BUILD: tcpcheck: use __fallthrough in check_proxy_tcpcheck() This avoids 1 build warning when preprocessing happens before compiling with gcc >= 7. --- src/tcpcheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcpcheck.c b/src/tcpcheck.c index 366a8d09c..bfe3a2c63 100644 --- a/src/tcpcheck.c +++ b/src/tcpcheck.c @@ -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;