From c5bc4ad24de9251759813175c531665853ea0337 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 14 Nov 2022 07:32:04 +0100 Subject: [PATCH] BUILD: http_act: use __fallthrough in parse_http_del_header() This avoids one build warning when preprocessing happens before compiling with gcc >= 7. --- src/http_act.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_act.c b/src/http_act.c index b370861fdf..d4da43983c 100644 --- a/src/http_act.c +++ b/src/http_act.c @@ -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: