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.
This commit is contained in:
Dentomologist 2023-11-10 11:59:11 -08:00
parent 8140d6b1d3
commit 2d3bae9c79
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}