From 9b86a15eeb314621d73893ecf32feef01d6e9ed9 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 10 Feb 2022 02:35:50 +0200 Subject: [PATCH 33/33] Fix "label at end of compound statement" compiler warning See osdn #43831 Signed-off-by: Marko Lindqvist --- common/scriptcore/api_game_methods.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/scriptcore/api_game_methods.c b/common/scriptcore/api_game_methods.c index fd0dfb5453..7d89161749 100644 --- a/common/scriptcore/api_game_methods.c +++ b/common/scriptcore/api_game_methods.c @@ -627,8 +627,11 @@ const char *api_methods_unit_transform_problem(lua_State *L, Unit *punit, case UU_NOT_IN_CITY: case UU_NOT_CITY_OWNER: /* should not get here */ + break; } + fc_assert_msg(FALSE, "Unexpected unit transform result %i", uu); + return "\?"; } -- 2.34.1