aboutsummaryrefslogtreecommitdiff
path: root/common/lua/ldebug.cpp
diff options
context:
space:
mode:
authorD G Turner2019-10-06 07:58:40 +0100
committerD G Turner2019-10-06 07:58:40 +0100
commit70582daf46efdc7353100c7d9405df9e6f9b7fa2 (patch)
tree1046011bbccb7c4449aa66fee9dcd271fe382d79 /common/lua/ldebug.cpp
parent6f8105264e6465c4061ca6fd04c7ea4340c78915 (diff)
downloadscummvm-rg350-70582daf46efdc7353100c7d9405df9e6f9b7fa2.tar.gz
scummvm-rg350-70582daf46efdc7353100c7d9405df9e6f9b7fa2.tar.bz2
scummvm-rg350-70582daf46efdc7353100c7d9405df9e6f9b7fa2.zip
COMMON: Fix Missing Default Switch Cases in Lua Interpreter
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'common/lua/ldebug.cpp')
-rw-r--r--common/lua/ldebug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/lua/ldebug.cpp b/common/lua/ldebug.cpp
index 96607d8e2a..91a8c3f9a4 100644
--- a/common/lua/ldebug.cpp
+++ b/common/lua/ldebug.cpp
@@ -304,6 +304,8 @@ static int checkArgMode (const Proto *pt, int r, enum OpArgMask mode) {
case OpArgK:
check(ISK(r) ? INDEXK(r) < pt->sizek : r < pt->maxstacksize);
break;
+ default:
+ break;
}
return 1;
}
@@ -348,6 +350,8 @@ static Instruction symbexec (const Proto *pt, int lastpc, int reg) {
}
break;
}
+ default:
+ break;
}
if (testAMode(op)) {
if (a == reg) last = pc; /* change register `a' */