aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/string.cpp
diff options
context:
space:
mode:
authorD G Turner2019-12-23 11:56:16 +0000
committerD G Turner2019-12-23 11:56:16 +0000
commit59b639ed4d9b8c45644053641522dedabd12fa56 (patch)
treecc98618132f1de362fca07369718af68df44e70a /engines/scumm/string.cpp
parentd5808d2903e2cc2a04e8545b84f1528230a9b010 (diff)
downloadscummvm-rg350-59b639ed4d9b8c45644053641522dedabd12fa56.tar.gz
scummvm-rg350-59b639ed4d9b8c45644053641522dedabd12fa56.tar.bz2
scummvm-rg350-59b639ed4d9b8c45644053641522dedabd12fa56.zip
SCUMM: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/scumm/string.cpp')
-rw-r--r--engines/scumm/string.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp
index a127de380e..421c72b21d 100644
--- a/engines/scumm/string.cpp
+++ b/engines/scumm/string.cpp
@@ -63,6 +63,8 @@ void ScummEngine::printString(int m, const byte *msg) {
case 3:
showMessageDialog(msg);
break;
+ default:
+ break;
}
}
@@ -955,6 +957,8 @@ void ScummEngine::drawString(int a, const byte *msg) {
}
_charset->_top += fontHeight;
break;
+ default:
+ break;
}
} else if ((c == 0xFF || (_game.version <= 6 && c == 0xFE)) && (_game.heversion <= 71)) {
c = buf[i++];
@@ -986,6 +990,8 @@ void ScummEngine::drawString(int a, const byte *msg) {
else
_charset->setColor(color);
break;
+ default:
+ break;
}
} else {
if (a == 1 && _game.version >= 6) {