diff options
author | D G Turner | 2019-12-01 05:06:31 +0000 |
---|---|---|
committer | D G Turner | 2019-12-01 05:06:31 +0000 |
commit | d11c61db1466d79ef6253814a86b04950b499ec3 (patch) | |
tree | 2987143903d00c9e6b0b8a8490aade67fe052b68 /engines/sci/resource.cpp | |
parent | f0c02796f44f7302719b0b107d0f0af6b00ffc50 (diff) | |
download | scummvm-rg350-d11c61db1466d79ef6253814a86b04950b499ec3.tar.gz scummvm-rg350-d11c61db1466d79ef6253814a86b04950b499ec3.tar.bz2 scummvm-rg350-d11c61db1466d79ef6253814a86b04950b499ec3.zip |
SCI: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/sci/resource.cpp')
-rw-r--r-- | engines/sci/resource.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 765747b3df..779bd0acb2 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -1219,6 +1219,8 @@ const char *ResourceManager::versionDescription(ResVersion version) const { return "SCI2/2.1"; case kResVersionSci3: return "SCI3"; + default: + break; } return "Version not valid"; @@ -2364,7 +2366,7 @@ ViewType ResourceManager::detectViewType() { return kViewAmiga64; return kViewVga; - case 0: + case 0: { // EGA or Amiga, try to read as Amiga view if (res->size() < 10) @@ -2412,6 +2414,10 @@ ViewType ResourceManager::detectViewType() { return kViewAmiga; } + + default: + break; + } } } |