Fix compiler warnings in generated code when using -std=c++98 -std=gnu89 -pedantic -Wreturn-type
This commit is contained in:
parent
f39ed94419
commit
3191473523
9 changed files with 80 additions and 60 deletions
|
|
@ -103,7 +103,6 @@ void swiglua_ref_clear(SWIGLUA_REF* pref){
|
|||
}
|
||||
|
||||
void swiglua_ref_set(SWIGLUA_REF* pref,lua_State* L,int idx){
|
||||
// swiglua_ref_clear(pref); /* just in case */
|
||||
pref->L=L;
|
||||
lua_pushvalue(L,idx); /* copy obj to top */
|
||||
pref->ref=luaL_ref(L,LUA_REGISTRYINDEX); /* remove obj from top & put into registry */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue