diff options
author | D G Turner | 2019-10-03 01:39:23 +0100 |
---|---|---|
committer | D G Turner | 2019-10-03 01:39:23 +0100 |
commit | d618cc983a4fb561969c7a2cbf40c214e7358bb1 (patch) | |
tree | 2ee4e176f89bffccbd2b67889626430ccb877222 /engines/macventure | |
parent | 0eec560cace96acff1450db26b7f914ff6703109 (diff) | |
download | scummvm-rg350-d618cc983a4fb561969c7a2cbf40c214e7358bb1.tar.gz scummvm-rg350-d618cc983a4fb561969c7a2cbf40c214e7358bb1.tar.bz2 scummvm-rg350-d618cc983a4fb561969c7a2cbf40c214e7358bb1.zip |
MACVENTURE: Add Missing Switch Default Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/macventure')
-rw-r--r-- | engines/macventure/image.cpp | 3 | ||||
-rw-r--r-- | engines/macventure/macventure.cpp | 4 | ||||
-rw-r--r-- | engines/macventure/text.cpp | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/engines/macventure/image.cpp b/engines/macventure/image.cpp index a899341eb9..2fc884ac7f 100644 --- a/engines/macventure/image.cpp +++ b/engines/macventure/image.cpp @@ -150,6 +150,9 @@ void ImageAsset::decodePPIC(ObjID id, Common::Array<byte> &data, uint &bitHeight case MacVenture::kPPIC3: decodePPIC3(stream, data, bitHeight, bitWidth, rowBytes); break; + default: + warning("decodePPIC(): Unknown mode!"); + break; } delete baseStream; diff --git a/engines/macventure/macventure.cpp b/engines/macventure/macventure.cpp index fb1ddc1b32..4de266a3f4 100644 --- a/engines/macventure/macventure.cpp +++ b/engines/macventure/macventure.cpp @@ -313,9 +313,11 @@ void MacVentureEngine::refreshReady() { _cmdReady = _currentSelection.size() != 0; break; case 2: - if (_destObject > 0) // We have a destination seleted + if (_destObject > 0) // We have a destination selected _cmdReady = true; break; + default: + break; } } diff --git a/engines/macventure/text.cpp b/engines/macventure/text.cpp index 60d7ea1316..8e3223ec32 100644 --- a/engines/macventure/text.cpp +++ b/engines/macventure/text.cpp @@ -195,6 +195,8 @@ Common::String TextAsset::getNoun(ObjID subval) { case 3: name = _engine->getPrefixString(2, obj) + name; break; + default: + break; } } if (name.size() && (subval & 4)) { |