mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-14 17:37:46 +00:00
BUILD: acl: use __fallthrough in parse_acl_expr()
This avoids two build warnings when preprocessing happens before compiling with gcc >= 7.
This commit is contained in:
parent
266ce55109
commit
8de35935b0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user