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:
parent
14d27c788f
commit
fb38050f9b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user