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/builtin.cpp | |
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/builtin.cpp')
-rw-r--r-- | engines/sludge/builtin.cpp | 5 |
1 files changed, 5 insertions, 0 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"); |