From af2daf6c5cb55b0def4b9641a2efdd3b8c06d305 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 11 May 2015 06:35:42 -0400 Subject: [PATCH] WiiConfigPane: Handle switch cases explicitly Gets rid of a warning on higher warning levels (switching on an enum type should handle cases explicitly) --- Source/Core/DolphinWX/Config/WiiConfigPane.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinWX/Config/WiiConfigPane.cpp b/Source/Core/DolphinWX/Config/WiiConfigPane.cpp index d1038d662d..216f8674c5 100644 --- a/Source/Core/DolphinWX/Config/WiiConfigPane.cpp +++ b/Source/Core/DolphinWX/Config/WiiConfigPane.cpp @@ -164,8 +164,10 @@ u8 WiiConfigPane::GetSADRCountryCode(DiscIO::IVolume::ELanguage language) return 157; // China case DiscIO::IVolume::LANGUAGE_KOREAN: return 136; // Korea - default: - PanicAlert("Invalid language"); - return 1; + case DiscIO::IVolume::LANGUAGE_UNKNOWN: + break; } + + PanicAlert("Invalid language. Defaulting to Japanese."); + return 1; }