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

@@ -550,8 +550,6 @@ int16_t LevelScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
dfRestore(event_data->fileptr);
} break;
case EVT_LEVELSTART: {
tOSIRISEVTLEVELSTART *event_data = &data->evt_levelstart;
ClearGlobalActionCtrs();
dfInit();
@@ -599,8 +597,6 @@ int16_t LevelScript_0000::CallEvent(int event, tOSIRISEventInfo *data) {
int16_t CustomObjectScript_1004::CallEvent(int event, tOSIRISEventInfo *data) {
switch (event) {
case EVT_CREATED: {
tOSIRISEVTCREATED *event_data = &data->evt_created;
// Script 003: Script Description Goes Here
if (1) {
aStoreObjectInPositionClipboard(Object_handles[0]);