diff options
author | D G Turner | 2019-12-01 01:08:45 +0000 |
---|---|---|
committer | D G Turner | 2019-12-01 01:08:45 +0000 |
commit | ef30ebc0bb1f72d4ad12074ae6e808a2b8225af2 (patch) | |
tree | da3fbf3bdb6fe6bee84d9c4085b9420b93d9dbf4 /engines/sludge | |
parent | bffb4418bde37804de728a3352f5a55601b4d65f (diff) | |
download | scummvm-rg350-ef30ebc0bb1f72d4ad12074ae6e808a2b8225af2.tar.gz scummvm-rg350-ef30ebc0bb1f72d4ad12074ae6e808a2b8225af2.tar.bz2 scummvm-rg350-ef30ebc0bb1f72d4ad12074ae6e808a2b8225af2.zip |
SLUDGE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/sludge')
-rw-r--r-- | engines/sludge/builtin.cpp | 5 | ||||
-rw-r--r-- | engines/sludge/fileset.cpp | 3 | ||||
-rw-r--r-- | engines/sludge/transition.cpp | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp index 185ff1a23c..05fdc20889 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -82,6 +82,8 @@ bool failSecurityCheck(const Common::String &fn) { case '|': fatal("Filenames may not contain the following characters: \n\n\\ / : \" < > | ? *\n\nConsequently, the following filename is not allowed:", fn); return true; + default: + break; } } return false; @@ -123,6 +125,9 @@ static BuiltReturn sayCore(int numParams, LoadedFunction *fun, bool sayIt) { //debugOut ("BUILTIN: sayCore: %s (%i)\n", newText, p); fun->isSpeech = true; return BR_KEEP_AND_PAUSE; + + default: + break; } fatal("Function should have either 2 or 3 parameters"); diff --git a/engines/sludge/fileset.cpp b/engines/sludge/fileset.cpp index 4f671ebbff..4a02d60bf2 100644 --- a/engines/sludge/fileset.cpp +++ b/engines/sludge/fileset.cpp @@ -182,6 +182,9 @@ Common::String ResourceManager::convertString(const Common::String &s) { // falls through case 1: r = wc + r; + break; + default: + break; } res += r; } diff --git a/engines/sludge/transition.cpp b/engines/sludge/transition.cpp index 35f650e8e4..0e6d28b315 100644 --- a/engines/sludge/transition.cpp +++ b/engines/sludge/transition.cpp @@ -403,7 +403,8 @@ void GraphicsManager::fixBrightness() { case 6: transitionSnapshotBox(); break; - + default: + break; } } |