mirror of https://github.com/stella-emu/stella.git
Fix compile warnings in gcc/clang.
This commit is contained in:
parent
e6af23d6c1
commit
375c56ae2d
|
@ -148,7 +148,7 @@ void GlobalKeyHandler::setDirectSetting(const Setting setting)
|
|||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
const GlobalKeyHandler::Group GlobalKeyHandler::getGroup() const
|
||||
GlobalKeyHandler::Group GlobalKeyHandler::getGroup() const
|
||||
{
|
||||
if(mySetting >= Setting::START_DEBUG_ADJ && mySetting <= Setting::END_DEBUG_ADJ)
|
||||
return Group::DEBUG;
|
||||
|
@ -315,7 +315,7 @@ const GlobalKeyHandler::Function GlobalKeyHandler::cycleSetting(int direction)
|
|||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
const GlobalKeyHandler::SettingData GlobalKeyHandler::getSettingData(const Setting setting) const
|
||||
GlobalKeyHandler::SettingData GlobalKeyHandler::getSettingData(const Setting setting) const
|
||||
{
|
||||
// Notes:
|
||||
// - all setting methods MUST always display a message
|
||||
|
|
|
@ -161,11 +161,11 @@ class GlobalKeyHandler
|
|||
|
||||
private:
|
||||
// Get group based on given setting
|
||||
const Group getGroup() const;
|
||||
Group getGroup() const;
|
||||
// Cycle settings using given direction (can be 0)
|
||||
const Function cycleSetting(int direction);
|
||||
// Get adjustment function and if it is repeated
|
||||
const SettingData getSettingData(const Setting setting) const;
|
||||
SettingData getSettingData(const Setting setting) const;
|
||||
|
||||
PhysicalJoystickHandler& joyHandler() const { return myOSystem.eventHandler().joyHandler(); }
|
||||
PhysicalKeyboardHandler& keyHandler() const { return myOSystem.eventHandler().keyHandler(); }
|
||||
|
|
Loading…
Reference in New Issue