[Scummvm-git-logs] scummvm master -> 5fa1800f4600bcfaddf4d137258c7eb1c66107d9

digitall noreply at scummvm.org
Tue Nov 12 22:09:37 UTC 2024


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

Summary:
5fa1800f46 NANCY: Fix Set But Unused Variable GCC Compiler Warning


Commit: 5fa1800f4600bcfaddf4d137258c7eb1c66107d9
    https://github.com/scummvm/scummvm/commit/5fa1800f4600bcfaddf4d137258c7eb1c66107d9
Author: D G Turner (digitall at scummvm.org)
Date: 2024-11-12T22:08:54Z

Commit Message:
NANCY: Fix Set But Unused Variable GCC Compiler Warning

Changed paths:
    engines/nancy/sound.cpp


diff --git a/engines/nancy/sound.cpp b/engines/nancy/sound.cpp
index a0e0e89e79a..a421db93136 100644
--- a/engines/nancy/sound.cpp
+++ b/engines/nancy/sound.cpp
@@ -373,11 +373,12 @@ void SoundManager::playSound(uint16 channelID) {
 		}
 	}
 
-	uint numLoops = chan.numLoops;
+	// FIXME: numLoops now unused. is this an oversight or just dead code?
+	//uint numLoops = chan.numLoops;
 	if (chan.playCommands & kPlayRandomTime) {
 		// We want to add randomized time delays between repeats, which is not doable with
 		// a simple LoopingAudioStream. The delays are added in soundEffectMaintenance();
-		numLoops = 1;
+		//numLoops = 1;
 
 		// Decrement the number of loops since we start playing immediately after
 		--chan.numLoops;




More information about the Scummvm-git-logs mailing list