WP-105: The engine’s three clang warnings (Gen 1)

Status: ✅ Done (2026-11-28). Fork PR barefootbetters/scummvm#30 merged on 2026-11-28 (merge commit 55c8b6b32a). Phase: 5 (build hygiene) Depends on: WP-103 ✅ (the fork tip the warnings were seen on) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-105-2026-11-28. Required: the packet modifies engines/terraglyph/**. Targets generation(s): Gen 1, both titles (no behaviour change). Estimated effort: An hour


Goal

Clear the three warnings that clang printed in the engine during the Android build that loaded Phantom on the TV:

engines/terraglyph/maze_rooms.h:142:6: warning: private field '_marker' is not used [-Wunused-private-field]
engines/terraglyph/room_class.cpp:81:23: warning: declaration requires a global destructor [-Wglobal-constructors]
engines/terraglyph/wizards_rooms.cpp:42:26: warning: unused variable 'kBigHead' [-Wunused-const-variable]

GCC, the Windows build, doesn’t report any of the three, so the Windows build had been clean.

The fixes

Both unused names date from the rename commit d168cbbcc6 (2026-11-23) or earlier.

Scope

In scope: fork terraglyph.h, room_class.cpp, maze_rooms.h, wizards_rooms.cpp; this packet, its pre-flight and the index row.

Out of scope: the warnings outside the engine (GCC: engines/gob/dataio.cpp, audio/mac/halestorm.cpp), which are upstream’s.

Exit criteria

  1. Clang. The Android tree, rebuilt with the four files, prints no warnings.
  2. GCC. The terraglyph-only Windows build prints no warnings in the engine.
  3. Self-test. Matches the WP-103 run except for the per-run random keys. No new warnings.
  4. Process. The fork PR against scooby-engine is open (merged later the same day).

Result

Evidence labels: log (a build or self-test log).

Deliverables