diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp index a29126a4..77368b15 100644 --- a/src/game/boe.actions.cpp +++ b/src/game/boe.actions.cpp @@ -1599,7 +1599,6 @@ bool handle_action(const sf::Event& event, cFramerateLimiter& fps_limiter) { } // Otherwise they're in a terrain view mode - location cur_loc = is_out() ? univ.party.out_loc : center; auto button_hit = UI::toolbar.button_hit(mainPtr(), the_point, fps_limiter); // MARK: Then, handle a button being hit. @@ -2908,7 +2907,6 @@ bool handle_keystroke(const sf::Event& event, cFramerateLimiter& fps_limiter){ chr2 = Key::Z; } else { - location cur_loc = is_out() ? univ.party.out_loc : center; location delta = directional_delta[i]; if(!handle_screen_shift(delta, need_redraw)){ if(handle_terrain_screen_actions(delta, false, false, did_something, need_redraw, need_reprint)){ diff --git a/src/game/boe.dlgutil.cpp b/src/game/boe.dlgutil.cpp index f0581630..67368ece 100644 --- a/src/game/boe.dlgutil.cpp +++ b/src/game/boe.dlgutil.cpp @@ -2165,7 +2165,7 @@ class cFilePicker { return true; } - bool dummyShowAuto(fs::path auto_folder, fs::path file) { + bool dummyShowAuto(fs::path auto_folder, fs::path) { cFilePicker dummyAuto(auto_folder, false, &me, true); dummyAuto.run(); if(dummyAuto.dummy_picker_chose){ diff --git a/src/game/boe.graphics.cpp b/src/game/boe.graphics.cpp index 2740c939..7d76df26 100644 --- a/src/game/boe.graphics.cpp +++ b/src/game/boe.graphics.cpp @@ -724,7 +724,6 @@ void draw_text_bar(std::pair text) { static bool had_statuses = false; bool has_statuses = false; for(auto next : univ.party.status) { - const auto& statInfo = *next.first; if(next.second > 0) { has_statuses = true; } @@ -1759,4 +1758,4 @@ void debug_show_texture(const sf::Texture& texture, float seconds, std::string l debug_window.display(); sf::sleep(sf::seconds(seconds)); debug_window.setVisible(false); -} \ No newline at end of file +} diff --git a/src/game/boe.main.cpp b/src/game/boe.main.cpp index 58863030..96118fd0 100644 --- a/src/game/boe.main.cpp +++ b/src/game/boe.main.cpp @@ -246,11 +246,11 @@ static void handleFatalError(std::string what) { } } -void dialog_lost_focus(sf::RenderWindow& win) { +static void dialog_lost_focus(sf::RenderWindow&) { setWindowFloating(mini_map(), false); } -void dialog_gained_focus(sf::RenderWindow& win) { +static void dialog_gained_focus(sf::RenderWindow&) { setWindowFloating(mini_map(), true); if(map_visible){ makeFrontWindow(mini_map()); diff --git a/src/game/boe.party.cpp b/src/game/boe.party.cpp index 3b29213a..2b94ab71 100644 --- a/src/game/boe.party.cpp +++ b/src/game/boe.party.cpp @@ -2070,7 +2070,7 @@ static bool finish_pick_spell(cDialog& me, bool spell_toast, const short store_s return true; } -eCastStatus check_can_cast(const cPlayer& pc, eSkill type) { +static eCastStatus check_can_cast(const cPlayer&, eSkill) { return CAST_OK; } @@ -2080,6 +2080,7 @@ void print_cast_status(eCastStatus status, eSkill type, std::string pc_name) { if(!pc_name.empty()) prefix += " (" + pc_name + ")"; prefix += ": "; switch(status){ + case CAST_OK: break; case NO_CAST_ANAMA: add_string_to_buf(prefix + "You're an Anama!"); break;