Removed compiler warnings.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-06-07 03:16:02 +00:00
parent f2a3dff4d2
commit c6727bfc01
3 changed files with 5 additions and 3 deletions

View File

@ -633,6 +633,7 @@ namespace GUIEngine
}
catch (std::runtime_error& err)
{
(void)err; // avoid warning about unused variable
std::cerr << "ERROR, cannot load skin specified in user config. Falling back to defaults.\n";
UserConfigParams::m_skin_file.revertToDefaults();
@ -712,6 +713,7 @@ namespace GUIEngine
}
catch (std::runtime_error& err)
{
(void)err; // avoid warning about unused variable
std::cerr << "ERROR, cannot load newly specified skin!\n";
return;
}

View File

@ -165,8 +165,8 @@ namespace GUIEngine
r = -1;
g = -1;
b = -1;
}
};
} // SkinWidgetContainer
}; // class SkinWidgetContainer
class Widget;

View File

@ -45,7 +45,7 @@ const wchar_t* getPlungerString()
case 1: return _("%1 latches onto %0 for a free ride");
//I18N: shown when hit by plunger. %0 is the victim, %1 is the attacker
case 2: return _("%1 tests a tractor beam on %0");
default: assert(false);
default: assert(false); return _(""); // avoid warning about no return value
}
}