From f30297df6854d167d2ce7fec0d48863054773be8 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 2 Mar 2022 04:59:03 +0200 Subject: [PATCH 43/43] Replace "Fall through" comments with fc__fallthrough See osdn #43645 Signed-off-by: Marko Lindqvist --- common/actions.c | 6 ++++-- server/stdinhand.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/common/actions.c b/common/actions.c index 602a0cc31e..5ec4499d74 100644 --- a/common/actions.c +++ b/common/actions.c @@ -3167,7 +3167,8 @@ blocked_find_target_tile(const struct action *act, if (target_unit) { return unit_tile(target_unit); } - /* Fall through. */ + + fc__fallthrough; case ATK_TILE: case ATK_EXTRAS: fc_assert_ret_val(target_tile_arg, NULL); @@ -3223,7 +3224,8 @@ blocked_find_target_city(const struct action *act, fc_assert_ret_val(unit_tile(target_unit), NULL); return tile_city(unit_tile(target_unit)); } - /* Fall through. */ + + fc__fallthrough; case ATK_TILE: case ATK_EXTRAS: fc_assert_ret_val(target_tile, NULL); diff --git a/server/stdinhand.c b/server/stdinhand.c index 6fdd1c38d3..50ae40614e 100644 --- a/server/stdinhand.c +++ b/server/stdinhand.c @@ -1790,7 +1790,8 @@ static void show_help_option(struct connection *caller, value, setting_enum_val(pset, i, TRUE)); } } - /* Fall through. */ + + fc__fallthrough; case SST_BOOL: case SST_STRING: cmd_reply(help_cmd, caller, C_COMMENT, "%s %s, %s %s", @@ -4956,7 +4957,8 @@ static bool lua_command(struct connection *caller, char *arg, bool check, ret = FALSE; goto cleanup; } - /* Fall through. */ + + fc__fallthrough; case LUA_FILE: /* Abuse real_filename to find if we already have a .lua extension. */ real_filename = luaarg + strlen(luaarg) - MIN(strlen(extension), -- 2.34.1