mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +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:
@@ -17,7 +17,7 @@
|
|||||||
#define strcpy_s(a, b, c) strncpy(a, c, b)
|
#define strcpy_s(a, b, c) strncpy(a, c, b)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *g_cszAiName = "Lua interpreter";
|
static const char *g_cszAiName = "Lua interpreter";
|
||||||
|
|
||||||
VCMI_LIB_NAMESPACE_BEGIN
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
|
||||||
|
@@ -329,7 +329,7 @@ JsonNode LuaContext::saveState()
|
|||||||
{
|
{
|
||||||
JsonNode data;
|
JsonNode data;
|
||||||
getGlobal(STATE_FIELD, data);
|
getGlobal(STATE_FIELD, data);
|
||||||
return std::move(data);
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaContext::pop(JsonNode & value)
|
void LuaContext::pop(JsonNode & value)
|
||||||
|
Reference in New Issue
Block a user