浏览代码

Fix a compiler warning

Alex Szpakowski 4 年之前
父节点
当前提交
cee8f8ae48
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
 }