From: Willy Tarreau Date: Mon, 14 Nov 2022 06:10:33 +0000 (+0100) Subject: BUILD: tcpcheck: use __fallthrough in check_proxy_tcpcheck() X-Git-Tag: v2.7-dev9~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f3f60763fab8f8950148573736f5fbe77cd1bf32;p=thirdparty%2Fhaproxy.git BUILD: tcpcheck: use __fallthrough in check_proxy_tcpcheck() This avoids 1 build warning when preprocessing happens before compiling with gcc >= 7. --- diff --git a/src/tcpcheck.c b/src/tcpcheck.c index 366a8d09cd..bfe3a2c631 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;