[Scummvm-git-logs] scummvm master -> c69fe8933068bac1500ff0eed9a6bf33fd35c4f0

sev- noreply at scummvm.org
Wed Aug 12 10:33:21 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
c69fe89330 MADS: Fix warnings with unused variables


Commit: c69fe8933068bac1500ff0eed9a6bf33fd35c4f0
    https://github.com/scummvm/scummvm/commit/c69fe8933068bac1500ff0eed9a6bf33fd35c4f0
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-08-12T12:33:02+02:00

Commit Message:
MADS: Fix warnings with unused variables

Changed paths:
    engines/mads/core/dialog.cpp
    engines/mads/dragonsphere/sound/gsound.cpp
    engines/mads/dragonsphere/sound/gsound.h


diff --git a/engines/mads/core/dialog.cpp b/engines/mads/core/dialog.cpp
index 4ab892eb1a3..2af5c3af942 100644
--- a/engines/mads/core/dialog.cpp
+++ b/engines/mads/core/dialog.cpp
@@ -81,7 +81,7 @@ int alert_hilite_color = DD_DEFAULT_HILITE_COLOR;
 
 static Dialog say_dialog_box;
 static DialogPtr say_dialog = &say_dialog_box;
-static char say_dialog_work[SAY_DIALOG_SIZE];
+//static char say_dialog_work[SAY_DIALOG_SIZE];
 
 #define write_flag      0x01
 #define error_mask      0x06
diff --git a/engines/mads/dragonsphere/sound/gsound.cpp b/engines/mads/dragonsphere/sound/gsound.cpp
index 7cd4c5f8df7..033cf01f997 100644
--- a/engines/mads/dragonsphere/sound/gsound.cpp
+++ b/engines/mads/dragonsphere/sound/gsound.cpp
@@ -79,7 +79,7 @@ void GSoundChannel::enableFade(byte flag) {
 GSound::GSound(Audio::Mixer *mixer, const GSoundDriverData &driverData) :
 		SoundDriver(mixer),
 		_driverData(driverData), _midiDriver(nullptr),
-		_driverCallbackDelta(0), _randomSeed(1234), _stateChanged(0),
+		_driverCallbackDelta(0), _randomSeed(1234), /* _stateChanged(0), */
 		_callbackCounter(0), _callbackPeriod(0), _deferredCommand(-1),
 		_musicIndex(0), _fadeCounter(0), _fadePeriod(0), _clockUnknown(0),
 		_clockCoarseTarget(0), _clockMediumTarget(0), _clockFine(0),
diff --git a/engines/mads/dragonsphere/sound/gsound.h b/engines/mads/dragonsphere/sound/gsound.h
index 79e5da912fb..64de22c26cc 100644
--- a/engines/mads/dragonsphere/sound/gsound.h
+++ b/engines/mads/dragonsphere/sound/gsound.h
@@ -157,7 +157,7 @@ private:
 	uint32 _driverCallbackDelta;
 	NativeSoundTimer _hostTimer;
 	uint16 _randomSeed;
-	uint16 _stateChanged;
+	//uint16 _stateChanged;
 	byte _heldNotes[GSOUND_CHANNEL_COUNT + 1][GSOUND_HELD_NOTE_COUNT];
 	byte _scriptVariables[GSOUND_SCRIPT_VARIABLE_COUNT];
 	byte _silenceStream[2];




More information about the Scummvm-git-logs mailing list