]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: acl: use __fallthrough in parse_acl_expr()
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 06:21:22 +0000 (07:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 10:14:02 +0000 (11:14 +0100)
This avoids two build warnings when preprocessing happens before compiling
with gcc >= 7.

src/acl.c

index 15ca7668e24ce6a5830435fa59e4765e2ff2da2c..84cb0f0d8ad06ca1d2b146d9373023328cee71b9 100644 (file)
--- 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)