diff options
author | D G Turner | 2019-10-17 00:47:34 +0100 |
---|---|---|
committer | D G Turner | 2019-10-17 00:47:34 +0100 |
commit | f7593adb3e778b733d300ff97216b2ff61439bbd (patch) | |
tree | 65685c5afad846ba3cd7a7f0bce1cc0cc2c80b88 /engines | |
parent | de42a124ed21f412ef1a23b09a6a3954d0cb2df0 (diff) | |
download | scummvm-rg350-f7593adb3e778b733d300ff97216b2ff61439bbd.tar.gz scummvm-rg350-f7593adb3e778b733d300ff97216b2ff61439bbd.tar.bz2 scummvm-rg350-f7593adb3e778b733d300ff97216b2ff61439bbd.zip |
CINE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cine/gfx.cpp | 3 | ||||
-rw-r--r-- | engines/cine/object.cpp | 4 | ||||
-rw-r--r-- | engines/cine/script_fw.cpp | 4 | ||||
-rw-r--r-- | engines/cine/various.cpp | 2 |
4 files changed, 13 insertions, 0 deletions
diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp index b9175cac72..981d73e539 100644 --- a/engines/cine/gfx.cpp +++ b/engines/cine/gfx.cpp @@ -635,6 +635,9 @@ void FWRenderer::renderOverlay(const Common::List<overlay>::iterator &it) { fillSprite(*obj); break; + + default: + break; } } diff --git a/engines/cine/object.cpp b/engines/cine/object.cpp index f014843f9d..5eabc79e8b 100644 --- a/engines/cine/object.cpp +++ b/engines/cine/object.cpp @@ -244,6 +244,8 @@ void modifyObjectParam(byte objIdx, byte paramIdx, int16 newValue) { case 6: g_cine->_objectTable[objIdx].part = newValue; break; + default: + break; } } @@ -310,6 +312,8 @@ int16 getObjectParam(uint16 objIdx, uint16 paramIdx) { return g_cine->_objectTable[objIdx].costume; case 5: return g_cine->_objectTable[objIdx].part; + default: + break; } return 0; diff --git a/engines/cine/script_fw.cpp b/engines/cine/script_fw.cpp index 86eb709d5a..4383c11d81 100644 --- a/engines/cine/script_fw.cpp +++ b/engines/cine/script_fw.cpp @@ -459,6 +459,8 @@ int RawScript::getNextLabel(const FWScriptInfo &info, int offset) const { break; case 'x': // exit script return -pos - 1; + default: + break; } } } @@ -1439,6 +1441,8 @@ int FWScript::o1_loadNewPrcName() { debugC(5, kCineDebugScript, "Line: %d: loadMsg(\"%s\")", _line, param2); Common::strlcpy(newMsgName, param2, sizeof(newMsgName)); break; + default: + break; } return 0; } diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp index d6654f1b8d..b571000962 100644 --- a/engines/cine/various.cpp +++ b/engines/cine/various.cpp @@ -523,6 +523,8 @@ void CineEngine::makeSystemMenu() { } break; } + default: + break; } inMenu = false; |