diff options
author | D G Turner | 2019-10-20 01:53:57 +0100 |
---|---|---|
committer | D G Turner | 2019-10-20 01:53:57 +0100 |
commit | ba6834c96e33723ad16f7d7fbaaba17a5e35e91d (patch) | |
tree | f957e29cc192db6d707e87a1a14dc89de03e1def /engines | |
parent | c69f994b2f737bf8289467f2cea7e40e4299016a (diff) | |
download | scummvm-rg350-ba6834c96e33723ad16f7d7fbaaba17a5e35e91d.tar.gz scummvm-rg350-ba6834c96e33723ad16f7d7fbaaba17a5e35e91d.tar.bz2 scummvm-rg350-ba6834c96e33723ad16f7d7fbaaba17a5e35e91d.zip |
SKY: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sky/debug.cpp | 2 | ||||
-rw-r--r-- | engines/sky/logic.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/engines/sky/debug.cpp b/engines/sky/debug.cpp index 78ded552d2..2d00c0b0b4 100644 --- a/engines/sky/debug.cpp +++ b/engines/sky/debug.cpp @@ -1258,6 +1258,8 @@ bool Debugger::Cmd_LogicCommand(int argc, const char **argv) { case 3: arg1 = atoi(argv[2]); // fall through + default: + break; } for (int i = 0; i < numMCodes; ++i) { diff --git a/engines/sky/logic.cpp b/engines/sky/logic.cpp index 8833b45078..aa2d4f6468 100644 --- a/engines/sky/logic.cpp +++ b/engines/sky/logic.cpp @@ -1318,6 +1318,8 @@ uint16 Logic::script(uint16 scriptNo, uint16 offset) { case 1: a = pop(); // fall through + default: + break; } uint16 mcode = *scriptData++ / 4; // get mcode number |