aboutsummaryrefslogtreecommitdiff
path: root/common/lua/lstrlib.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/lstrlib.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/lstrlib.cpp')
-rw-r--r--common/lua/lstrlib.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/lua/lstrlib.cpp b/common/lua/lstrlib.cpp
index 719ab4d8b2..cad9c841d4 100644
--- a/common/lua/lstrlib.cpp
+++ b/common/lua/lstrlib.cpp
@@ -624,6 +624,8 @@ static void add_value (MatchState *ms, luaL_Buffer *b, const char *s,
lua_gettable(L, 3);
break;
}
+ default:
+ break;
}
if (!lua_toboolean(L, -1)) { /* nil or false? */
lua_pop(L, 1);