This is a fixes for some LUA warnings for building it with strict compilation.
@@ -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
@@ -329,7 +329,7 @@ JsonNode LuaContext::saveState()
{
JsonNode data;
getGlobal(STATE_FIELD, data);
- return std::move(data);
+ return data;
}
void LuaContext::pop(JsonNode & value)