Removed some VS C++ compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1422 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-01-30 04:01:55 +00:00
parent 67bf7ddabd
commit 818ab3d164
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,8 @@ namespace lisp
nextChar(); nextChar();
} }
catch(EOFException& e) catch(EOFException& e)
{} {(void)e; // avoid 'unreferenced local variable' warning
}
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@ -370,6 +370,7 @@ void UserConfig::loadConfig(const std::string& filename)
} }
catch(std::exception& e) catch(std::exception& e)
{ {
(void)e; // avoid warning about unreferenced local variable
printf(_("Config file '%s' does not exist, it will be created.\n"), printf(_("Config file '%s' does not exist, it will be created.\n"),
filename.c_str()); filename.c_str());
delete root; delete root;

View File

@ -305,8 +305,6 @@ void Widget::update(const float DELTA)
size_t line_start = 0; size_t line_start = 0;
bool draw; bool draw;
bool out_of_rect = false; bool out_of_rect = false;
float top, bottom;
int text_height;
glEnable( GL_SCISSOR_TEST ); glEnable( GL_SCISSOR_TEST );
do do