mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 01:35:21 +03:00
Removed compiler warning: lua.cpp:1382:21: warning: variable 'filename' set but not used [-Wunused-but-set-variable]
This commit is contained in:
parent
6707f68923
commit
91dfb0309e
1 changed files with 1 additions and 1 deletions
|
@ -1379,7 +1379,7 @@ void luaTask(uint8_t evt)
|
|||
if (sid.state == SCRIPT_OK) {
|
||||
uint8_t prev_mem = lua_gc(L, LUA_GCCOUNT, 0);
|
||||
SET_LUA_INSTRUCTIONS_COUNT(PERMANENT_SCRIPTS_MAX_INSTRUCTIONS);
|
||||
const char *filename;
|
||||
const char *filename __attribute__((unused));
|
||||
ScriptInputsOutputs * sio = NULL;
|
||||
if (sid.reference >= SCRIPT_MIX_FIRST && sid.reference <= SCRIPT_MIX_LAST) {
|
||||
ScriptData & sd = g_model.scriptsData[sid.reference-SCRIPT_MIX_FIRST];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue