scripts: resolve 917 instances of -Wunused-variable

scripts/LEVEL0.cpp:1036:27: warning: unused variable "event_data" [-Wunused-variable]
and a lot more.
This commit is contained in:
Jan Engelhardt
2024-11-03 21:10:38 +01:00
parent c9bf214ede
commit 0e6110e78b
53 changed files with 29 additions and 1721 deletions

View File

@@ -718,8 +718,6 @@ int16_t LevelScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
dfRestore(event_data->fileptr);
} break;
case EVT_INTERVAL: {
tOSIRISEVTINTERVAL *event_data = &data->evt_interval;
// Script 011: AreasVisited
if ((ScriptActionCtr_011 < 1) && (qUserVarValueInt(4) == 3)) {
aGoalCompleted(Goal_indexes[3], 1);
@@ -751,8 +749,6 @@ int16_t LevelScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
}
} break;
case EVT_LEVELSTART: {
tOSIRISEVTLEVELSTART *event_data = &data->evt_levelstart;
ClearGlobalActionCtrs();
dfInit();