From 8c82f4486179f3896ddfda2d8710e7f7db231aa5 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 16 May 2022 01:13:48 +0300 Subject: [PATCH 19/19] Fix clang-15 unused variable warnings See osdn #44564 Signed-off-by: Marko Lindqvist --- client/gui-qt/cityrep.cpp | 3 --- server/legacysave.c | 2 -- 2 files changed, 5 deletions(-) diff --git a/client/gui-qt/cityrep.cpp b/client/gui-qt/cityrep.cpp index b5f03e5855..adbf3396ea 100644 --- a/client/gui-qt/cityrep.cpp +++ b/client/gui-qt/cityrep.cpp @@ -471,7 +471,6 @@ void city_widget::display_list_menu(const QPoint &) cid id; const char *imprname; enum menu_labels m_state; - int sell_count; int sell_gold; int sell_ret = QMessageBox::Cancel; struct city *pcity; @@ -550,7 +549,6 @@ void city_widget::display_list_menu(const QPoint &) connect(&cty_center, &QAction::triggered, this, &city_widget::center); } act = 0; - sell_count = 0; sell_gold = 0; sell_ask = true; act = list_menu.exec(QCursor::pos()); @@ -664,7 +662,6 @@ void city_widget::display_list_menu(const QPoint &) } if (sell_ret == QMessageBox::Ok) { if (!pcity->did_sell && city_has_building(pcity, building)) { - sell_count++; sell_gold += impr_sell_gold(building); city_sell_improvement(pcity, improvement_number(building)); } diff --git a/server/legacysave.c b/server/legacysave.c index 876e68e2cb..975899fda3 100644 --- a/server/legacysave.c +++ b/server/legacysave.c @@ -3988,7 +3988,6 @@ static void game_load_internal(struct section_file *file) if (!game.info.is_new_game) { int *worked_tiles = NULL; /* temporary map for worked tiles */ - int loaded_players = 0; int players; /* Update time has been saved as year in legacysave.c */ @@ -4037,7 +4036,6 @@ static void game_load_internal(struct section_file *file) default_ai_type_name(), NULL, FALSE); server_player_init(pplayer, FALSE, FALSE); - loaded_players++; } player_slots_iterate_end; /* check number of players */ -- 2.35.1