From 1893c2d040bc29e1bef72bed828213f89721968a Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 24 Dec 2022 22:05:28 +0200 Subject: [PATCH 13/13] Fix unused assignment in assign_continent_flood() with FREECIV_NDEBUG See osdn #46349 Signed-off-by: Marko Lindqvist --- server/generator/mapgen_utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/generator/mapgen_utils.c b/server/generator/mapgen_utils.c index f89fa0ff6b..cf00cef808 100644 --- a/server/generator/mapgen_utils.c +++ b/server/generator/mapgen_utils.c @@ -287,11 +287,13 @@ static void recalculate_lake_surrounders(void) static void assign_continent_flood(struct tile *ptile, bool is_land, int nr) { struct tile_list *tlist = NULL; - const struct terrain *pterrain = NULL; + const struct terrain *pterrain; fc_assert_ret(ptile != NULL); +#ifndef FREECIV_NDEBUG pterrain = tile_terrain(ptile); +#endif /* Check if the initial tile is a valid tile for continent / ocean. */ fc_assert_ret(tile_continent(ptile) == 0 && T_UNKNOWN != pterrain -- 2.35.1