From: Willy Tarreau Date: Mon, 14 Nov 2022 06:21:22 +0000 (+0100) Subject: BUILD: acl: use __fallthrough in parse_acl_expr() X-Git-Tag: v2.7-dev9~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8de35935b07c3d00d5f6e942b5a2ca32a36a6b7f;p=thirdparty%2Fhaproxy.git BUILD: acl: use __fallthrough in parse_acl_expr() This avoids two build warnings when preprocessing happens before compiling with gcc >= 7. --- diff --git a/src/acl.c b/src/acl.c index 15ca7668e2..84cb0f0d8a 100644 --- a/src/acl.c +++ b/src/acl.c @@ -601,7 +601,7 @@ struct acl_expr *parse_acl_expr(const char **args, char **err, struct arg_list * case STD_OP_GT: value++; /* gt = ge + 1 */ - /* fall through */ + __fallthrough; case STD_OP_GE: if (expr->pat.parse == pat_parse_int) @@ -614,7 +614,7 @@ struct acl_expr *parse_acl_expr(const char **args, char **err, struct arg_list * case STD_OP_LT: value--; /* lt = le - 1 */ - /* fall through */ + __fallthrough; case STD_OP_LE: if (expr->pat.parse == pat_parse_int)