1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

vcmi: build lua with STRICT_COMPILATION

This is a fixes for some LUA warnings for building it with strict
compilation.
This commit is contained in:
Konstantin 2023-02-05 01:28:44 +03:00
parent 14d27c788f
commit fb38050f9b
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
#define strcpy_s(a, b, c) strncpy(a, c, b)
#endif
const char *g_cszAiName = "Lua interpreter";
static const char *g_cszAiName = "Lua interpreter";
VCMI_LIB_NAMESPACE_BEGIN

View File

@ -329,7 +329,7 @@ JsonNode LuaContext::saveState()
{
JsonNode data;
getGlobal(STATE_FIELD, data);
return std::move(data);
return data;
}
void LuaContext::pop(JsonNode & value)