diff options
author | D G Turner | 2019-10-16 23:24:05 +0100 |
---|---|---|
committer | D G Turner | 2019-10-16 23:24:05 +0100 |
commit | 690370554feaec28aae486816702bb108019c113 (patch) | |
tree | ba1be03c216cf7bc801f7738eebbe9dfb5c72897 | |
parent | 32a6f0b376dd98abd59ae8e9c61bce50f58ffa1a (diff) | |
download | scummvm-rg350-690370554feaec28aae486816702bb108019c113.tar.gz scummvm-rg350-690370554feaec28aae486816702bb108019c113.tar.bz2 scummvm-rg350-690370554feaec28aae486816702bb108019c113.zip |
SDL: Fix Missing Default Switch Cases in Events Class
These are flagged by GCC if -Wswitch-default is enabled.
-rw-r--r-- | backends/events/sdl/sdl-events.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp index 1c661a4cef..75c655269a 100644 --- a/backends/events/sdl/sdl-events.cpp +++ b/backends/events/sdl/sdl-events.cpp @@ -668,6 +668,8 @@ bool SdlEventSource::dispatchSDLEvent(SDL_Event &ev, Common::Event &event) { event.type = Common::EVENT_QUIT; return true; + default: + break; } if (_joystick) { @@ -680,6 +682,8 @@ bool SdlEventSource::dispatchSDLEvent(SDL_Event &ev, Common::Event &event) { return handleJoyAxisMotion(ev, event); case SDL_JOYHATMOTION: return handleJoyHatMotion(ev, event); + default: + break; } } @@ -692,6 +696,8 @@ bool SdlEventSource::dispatchSDLEvent(SDL_Event &ev, Common::Event &event) { return handleControllerButton(ev, event, true); case SDL_CONTROLLERAXISMOTION: return handleControllerAxisMotion(ev, event); + default: + break; } } #endif @@ -979,6 +985,8 @@ bool SdlEventSource::handleJoyButtonDown(SDL_Event &ev, Common::Event &event) { event.type = Common::EVENT_VIRTUAL_KEYBOARD; break; #endif + default: + break; } return true; } @@ -1021,6 +1029,8 @@ bool SdlEventSource::handleJoyButtonUp(SDL_Event &ev, Common::Event &event) { // Handled in key down break; #endif + default: + break; } return true; } |