From: Willy Tarreau Date: Mon, 14 Nov 2022 06:32:04 +0000 (+0100) Subject: BUILD: http_act: use __fallthrough in parse_http_del_header() X-Git-Tag: v2.7-dev9~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5bc4ad24de9251759813175c531665853ea0337;p=thirdparty%2Fhaproxy.git BUILD: http_act: use __fallthrough in parse_http_del_header() This avoids one build warning when preprocessing happens before compiling with gcc >= 7. --- 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: