From 266ce55109f84e7ab8613736b1f1e6097f1ac021 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 14 Nov 2022 07:20:54 +0100 Subject: [PATCH] BUILD: args: use __fallthrough in make_arg_list() This avoids one build warning when preprocessing happens before compiling with gcc >= 7. --- src/arg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arg.c b/src/arg.c index 039602a49..17f5ed061 100644 --- 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