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

src/arg.c

index 039602a494b09d2dfb435f214917866d9d64ee2e..17f5ed061d6230d02f07d160fad098a45046b211 100644 (file)
--- a/src/arg.c
+++ b/src/arg.c
@@ -250,8 +250,8 @@ int make_arg_list(const char *in, int len, uint64_t mask, struct arg **argp,
                                goto resolve_err;
                        arg->unresolved = 1;
                        new_al = arg_list_add(al, arg, pos);
+                       __fallthrough;
 
-                       /* fall through */
                case ARGT_STR:
                        /* all types that must be resolved are stored as strings
                         * during the parsing. The caller must at one point resolve