summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/lua')
-rw-r--r--plugins/MirLua/src/lua/lapi.c2
-rw-r--r--plugins/MirLua/src/lua/loslib.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/plugins/MirLua/src/lua/lapi.c b/plugins/MirLua/src/lua/lapi.c
index fea9eb2765..52e7adfedc 100644
--- a/plugins/MirLua/src/lua/lapi.c
+++ b/plugins/MirLua/src/lua/lapi.c
@@ -1091,8 +1091,6 @@ LUA_API int lua_error (lua_State *L) {
lua_lock(L);
api_checknelems(L, 1);
luaG_errormsg(L);
- /* code unreachable; will unlock when control actually leaves the kernel */
- return 0; /* to avoid warnings */
}
diff --git a/plugins/MirLua/src/lua/loslib.c b/plugins/MirLua/src/lua/loslib.c
index cb8a3c3314..d747f26b90 100644
--- a/plugins/MirLua/src/lua/loslib.c
+++ b/plugins/MirLua/src/lua/loslib.c
@@ -232,7 +232,6 @@ static const char *checkoption (lua_State *L, const char *conv, char *buff) {
}
luaL_argerror(L, 1,
lua_pushfstring(L, "invalid conversion specifier '%%%s'", conv));
- return conv; /* to avoid warnings */
}