From 72d4d4972fa22f5735f8b089035aca0a1effa424 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 6 May 2017 17:40:38 +0200 Subject: [PATCH] client: Silence a gcc-7.1,0 warning. This version of gcc complains because a case statement in client_pre_select() may fall through. The fallthrough is intentional, however, and this is annotated with a comment. gcc-7 scans the comments in a switch statement and suppresses the warning if it recognizes a comment which says that fallthrough is intended. But for this to happen, we must spell it correctly, and without whitespace. After this commit, gcc-7 compiles the tree with no warnings. --- client_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_common.c b/client_common.c index a06aaa00..39eb8b4c 100644 --- a/client_common.c +++ b/client_common.c @@ -90,7 +90,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); } - /* fall though */ + /* fallthrough */ case CL_EXECUTING: if (ct->btrn[0]) { ret = btr_node_status(ct->btrn[0], 0, BTR_NT_ROOT); -- 2.30.2