diff options
| author | Dentomologist <dentomologist@gmail.com> | 2023-11-10 11:59:11 -0800 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2023-11-10 12:05:20 -0800 |
| commit | 2d3bae9c7986f1c6f71f2a1c6a9c36468d0c1a40 (patch) | |
| tree | 84a41b33d40b401087b1db5e74f484155b0a15f5 /Source/Core/InputCommon/ControllerInterface | |
| parent | 8140d6b1d3b0fa1d3ab793b4a52b61d50b3faf76 (diff) | |
SDL: Add default case to switch statement
Fix -WSwitch warning about unhandled enum value SDL_NUM_LOG_PRIORITIES.
log_level is initialized to LNOTICE right before the switch statement so
this doesn't cause any behavior changes.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp index eca311f09a..ac0123aedd 100644 --- a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp +++ b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp @@ -156,6 +156,7 @@ static void EnableSDLLogging() log_level = Common::Log::LogLevel::LERROR; break; case SDL_LOG_PRIORITY_CRITICAL: + default: log_level = Common::Log::LogLevel::LNOTICE; break; } |
