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

src/http_act.c

index b370861fdfc055c817dca283db901481ad5eb396..d4da43983cc899d8a732004ab420a96b840abd8d 100644 (file)
@@ -1733,7 +1733,7 @@ static enum act_parse_ret parse_http_del_header(const char **args, int *orig_arg
                case PAT_MATCH_REG:
                        if (!(rule->arg.http.re = regex_comp(rule->arg.http.str.ptr, 1, 1, err)))
                                return ACT_RET_PRS_ERR;
-                       /* fall through */
+                       __fallthrough;
                case PAT_MATCH_STR:
                case PAT_MATCH_BEG:
                case PAT_MATCH_END: