Fix abundant warnings with GCC
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8480 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
fb4fb58ffd
commit
8bd30a0b87
@ -672,3 +672,11 @@ void UserConfig::saveConfig()
|
||||
}
|
||||
|
||||
} // saveConfig
|
||||
|
||||
bool UserConfigParams::logMemory() { return (m_verbosity&LOG_MEMORY) == LOG_MEMORY;}
|
||||
|
||||
bool UserConfigParams::logGUI () { return (m_verbosity&LOG_GUI) == LOG_GUI; }
|
||||
|
||||
bool UserConfigParams::logAddons() { return (m_verbosity&LOG_ADDONS) == LOG_ADDONS;}
|
||||
|
||||
bool UserConfigParams::logMisc () { return (m_verbosity&LOG_MISC) == LOG_MISC; }
|
||||
|
@ -499,13 +499,13 @@ namespace UserConfigParams
|
||||
LOG_MISC = 0x0008};
|
||||
|
||||
/** Returns true if the user want additional messages for memory usage. */
|
||||
static bool logMemory() { return (m_verbosity&LOG_MEMORY) == LOG_MEMORY;}
|
||||
bool logMemory();
|
||||
/** Returns true if the user want additional messages related to GUI. */
|
||||
static bool logGUI () { return (m_verbosity&LOG_GUI) == LOG_GUI; }
|
||||
bool logGUI ();
|
||||
/** Returns true if the user want additional messages related to addons. */
|
||||
static bool logAddons() { return (m_verbosity&LOG_ADDONS) == LOG_ADDONS;}
|
||||
bool logAddons();
|
||||
/** Returns true if the user want additional messages for general items. */
|
||||
static bool logMisc () { return (m_verbosity&LOG_MISC) == LOG_MISC; }
|
||||
bool logMisc ();
|
||||
|
||||
|
||||
}
|
||||
|
@ -266,7 +266,7 @@ void EventHandler::processGUIAction(const PlayerAction action,
|
||||
{
|
||||
Widget* w = GUIEngine::getFocusForPlayer(playerID);
|
||||
if (w == NULL) break;
|
||||
|
||||
|
||||
// FIXME : consider returned value?
|
||||
onWidgetActivated( w, playerID );
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ AddDeviceDialog::AddDeviceDialog() : ModalDialog(0.90f, 0.80f)
|
||||
b->setTabStop(false);
|
||||
b->setRightToLeft(translations->isRTLLanguage());
|
||||
b->setText(msg.c_str()); // because it looks like 'setRightToLeft' applies next time setText is called only
|
||||
|
||||
|
||||
{
|
||||
ButtonWidget* widget = new ButtonWidget();
|
||||
widget->m_properties[PROP_ID] = "addkeyboard";
|
||||
|
Loading…
x
Reference in New Issue
Block a user