mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue