Skip to content

Commit

Permalink
Lua Visual C++ C4100 warning fix
Browse files Browse the repository at this point in the history
Closes swig#2760
  • Loading branch information
wsfulton committed Jan 16, 2024
1 parent 2d39d55 commit 521d43d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/lua/luarun.swg
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ SWIGINTERN int SWIG_Lua_class_do_get_item(lua_State *L, swig_type_info *type, i
int bases_search_result;
int substack_start = lua_gettop(L)-2;
assert(first_arg == substack_start+1);
(void)first_arg;
lua_checkstack(L,5);
assert(lua_isuserdata(L,-2)); /* just in case */
lua_getmetatable(L,-2); /* get the meta table */
Expand Down Expand Up @@ -871,6 +872,7 @@ SWIGINTERN int SWIG_Lua_class_do_get(lua_State *L, swig_type_info *type, int SW
int bases_search_result;
int substack_start = lua_gettop(L)-2;
assert(first_arg == substack_start+1);
(void)first_arg;
lua_checkstack(L,5);
assert(lua_isuserdata(L,-2)); /* just in case */
lua_getmetatable(L,-2); /* get the meta table */
Expand Down

0 comments on commit 521d43d

Please sign in to comment.