From 690370554feaec28aae486816702bb108019c113 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Wed, 16 Oct 2019 23:24:05 +0100 Subject: SDL: Fix Missing Default Switch Cases in Events Class These are flagged by GCC if -Wswitch-default is enabled. --- backends/events/sdl/sdl-events.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'backends/events') 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; } -- cgit v1.2.3