Explorar o código

Fix a compiler warning

Alex Szpakowski %!s(int64=4) %!d(string=hai) anos
pai
achega
cee8f8ae48
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/common/runtime.cpp

+ 2 - 0
src/common/runtime.cpp

@@ -1010,8 +1010,10 @@ int luax_resume(lua_State *L, int nargs, int* nres)
 #if LUA_VERSION_NUM >= 504
 	return lua_resume(L, nullptr, nargs, nres);
 #elif LUA_VERSION_NUM >= 502
+	LOVE_UNUSED(nres);
 	return lua_resume(L, nullptr, nargs);
 #else
+	LOVE_UNUSED(nres);
 	return lua_resume(L, nargs);
 #endif
 }