SWORD25: Silence warning in the Lua code

This fixes warnings like this that crop up when compiling sword25
with Apple clang 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
This commit is contained in:
Max Horn 2013-04-18 17:09:32 +02:00
parent 2b8cb1c1f0
commit 4a55f52818
2 changed files with 10 additions and 10 deletions

View File

@ -98,6 +98,16 @@ static void resetstack (lua_State *L, int status) {
}
// Added in ScummVM. Refer to http://www.lua.org/manual/5.1/manual.html
static const char* luaErrorDescription[] = {
"No error",
"Coroutine yield", // not an actual error, see lua_resume
"Runtime error",
"Syntax error during pre-compilation", // refer to lua_load
"Memory allocation error",
"Error while running the error handler function"
};
void luaD_throw (lua_State *L, int errcode) {
if (L->errorJmp) {
L->errorJmp->status = errcode;

View File

@ -48,16 +48,6 @@
#define LUA_ERRMEM 4
#define LUA_ERRERR 5
// Added in ScummVM. Refer to http://www.lua.org/manual/5.1/manual.html
static const char* luaErrorDescription[] = {
"No error",
"Coroutine yield", // not an actual error, see lua_resume
"Runtime error",
"Syntax error during pre-compilation", // refer to lua_load
"Memory allocation error",
"Error while running the error handler function"
};
typedef struct lua_State lua_State;
typedef int (*lua_CFunction) (lua_State *L);