From 0767c3d94dffd7cb00d6d1fa457666a0e989ce94 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Tue, 21 Mar 2017 23:42:12 -0700 Subject: [PATCH] DiscIO: add empty UNKNOWN_REGION case (fixes warning) Fixes warning: ``` dolphin/Source/Core/DiscIO/Enums.cpp:171:11: warning: enumeration value 'UNKNOWN_REGION' not handled in switch [-Wswitch] switch (GetSysMenuRegion(title_version)) ^ ``` --- Source/Core/DiscIO/Enums.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/DiscIO/Enums.cpp b/Source/Core/DiscIO/Enums.cpp index f6311422fe..c84fb5ac6f 100644 --- a/Source/Core/DiscIO/Enums.cpp +++ b/Source/Core/DiscIO/Enums.cpp @@ -182,6 +182,9 @@ std::string GetSysMenuVersionString(u16 title_version) case Region::NTSC_K: region_letter = "K"; break; + case Region::UNKNOWN_REGION: + WARN_LOG(DISCIO, "Unknown Region for title: %u", title_version); + break; } switch (title_version & ~0xf)