diff options
author | D G Turner | 2019-12-23 11:56:16 +0000 |
---|---|---|
committer | D G Turner | 2019-12-23 11:56:16 +0000 |
commit | 59b639ed4d9b8c45644053641522dedabd12fa56 (patch) | |
tree | cc98618132f1de362fca07369718af68df44e70a /engines/scumm/string.cpp | |
parent | d5808d2903e2cc2a04e8545b84f1528230a9b010 (diff) | |
download | scummvm-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.cpp | 6 |
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) { |