From 7c6dc77365551afb52510ac681944589eefe0758 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Tue, 24 Aug 2010 23:35:43 +0000 Subject: [PATCH] Removed compiler warnings. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5772 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/states_screens/race_result_gui.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/states_screens/race_result_gui.cpp b/src/states_screens/race_result_gui.cpp index bda11ac95..5522d6e9b 100644 --- a/src/states_screens/race_result_gui.cpp +++ b/src/states_screens/race_result_gui.cpp @@ -66,8 +66,6 @@ void RaceResultGUI::init() m_timer = 0; - GUIEngine::Widget *div_widget = getWidget("div"); - getWidget("top")->setVisible(false); getWidget("middle")->setVisible(false); getWidget("bottom")->setVisible(false); @@ -220,7 +218,7 @@ void RaceResultGUI::eventCallback(GUIEngine::Widget* widget, } else { - fprintf(stderr, "Incorrect event '%s' for normal race '%s'.\n", + fprintf(stderr, "Incorrect event '%s' for normal race.\n", name.c_str()); } } // eventCallback @@ -445,6 +443,7 @@ void RaceResultGUI::renderGlobal(float dt) switch(m_animation_state) { // Both states use the same scrolling: + case RR_INIT: break; // Remove compiler warning case RR_RACE_RESULT: case RR_OLD_GP_RESULTS: if(m_timer > ri->m_start_at) @@ -528,7 +527,6 @@ void RaceResultGUI::determineGPLayout() void RaceResultGUI::displayOneEntry(unsigned int x, unsigned int y, unsigned int n, bool display_points) { - World *world = World::getWorld(); RowInfo *ri = &(m_all_row_infos[n]); video::SColor color = ri->m_is_player_kart ? video::SColor(255,255,0, 0 ) : video::SColor(255,255,255,255);