From b557d3ed0f0ea2a5f15c25ca5f3ee372e5479990 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 1 Jun 2020 19:28:01 +0200 Subject: [PATCH] Replace /* fallthrouth*/ by __attribute__ ((fallthrough)); Some (recent) gcc versions still complain because the switch case falls through. The new code causes a warning on old compilers which don't know the fallthrough attribute, but this is still better than seeing the warning on systems with a recent compiler. --- client_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client_common.c b/client_common.c index a7eee85d..dc24a628 100644 --- a/client_common.c +++ b/client_common.c @@ -86,7 +86,7 @@ static void client_pre_select(struct sched *s, void *context) else if (ret > 0) para_fd_set(ct->scc.fd, &s->wfds, &s->max_fileno); } - /* fallthrough */ + __attribute__ ((fallthrough)); case CL_EXECUTING: if (ct->btrn[0]) { ret = btr_node_status(ct->btrn[0], 0, BTR_NT_ROOT); @@ -389,7 +389,7 @@ static int client_post_select(struct sched *s, void *context) btr_consume(ct->btrn[1], sz); } } - /* fall through */ + __attribute__ ((fallthrough)); case CL_EXECUTING: if (ct->btrn[0]) { ret = btr_node_status(ct->btrn[0], 0, BTR_NT_ROOT); -- 2.39.2