fix: some cppcheck errors (#4942)

This commit is contained in:
Peter Feerick
2024-05-02 13:13:16 +10:00
committed by GitHub
parent e48e82a8dc
commit e72f1d2da1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -93,8 +93,8 @@ AFHDS2ASettings::AFHDS2ASettings(Window* parent, const FlexGridLayout& g,
md->flysky.rfPower = newValue; md->flysky.rfPower = newValue;
resetPulsesAFHDS2(); resetPulsesAFHDS2();
}); });
#endif
} }
#endif
hideAFHDS2Options(); hideAFHDS2Options();
} }
+1 -1
View File
@@ -1340,7 +1340,7 @@ void luaInit()
#if defined(USE_BIN_ALLOCATOR) #if defined(USE_BIN_ALLOCATOR)
L = lua_newstate(bin_l_alloc, nullptr); //we use our own allocator! L = lua_newstate(bin_l_alloc, nullptr); //we use our own allocator!
#elif defined(LUA_ALLOCATOR_TRACER) #elif defined(LUA_ALLOCATOR_TRACER)
memclear(&lsScriptsTrace, sizeof(lsScriptsTrace); memclear(&lsScriptsTrace, sizeof(lsScriptsTrace));
lsScriptsTrace.script = "lua_newstate(scripts)"; lsScriptsTrace.script = "lua_newstate(scripts)";
L = lua_newstate(tracer_alloc, &lsScriptsTrace); //we use tracer allocator L = lua_newstate(tracer_alloc, &lsScriptsTrace); //we use tracer allocator
#else #else