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

digitall noreply at scummvm.org
Thu Jan 18 01:36:11 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:
ca75845db8 M4: Fix GCC Set But Unused Variable Compiler Warning


Commit: ca75845db82928c0efd2a5d4e700df18f5614dc7
    https://github.com/scummvm/scummvm/commit/ca75845db82928c0efd2a5d4e700df18f5614dc7
Author: D G Turner (digitall at scummvm.org)
Date: 2024-01-18T01:35:39Z

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

Changed paths:
    engines/m4/riddle/walker.cpp


diff --git a/engines/m4/riddle/walker.cpp b/engines/m4/riddle/walker.cpp
index bd80215f066..c135744e59d 100644
--- a/engines/m4/riddle/walker.cpp
+++ b/engines/m4/riddle/walker.cpp
@@ -69,10 +69,8 @@ static const int16 SAFARI_SHADOWS_DIRS[6] = {
 };
 
 void Walker::player_walker_callback(frac16 myMessage, machine *sender) {
-	int32 triggerType, subVal;
-
-	triggerType = _G(globals)[GLB_TEMP_1] >> 16;
-	subVal = _G(globals)[GLB_TEMP_3] >> 16;
+	int32 triggerType = _G(globals)[GLB_TEMP_1] >> 16;
+	//int32 subVal = _G(globals)[GLB_TEMP_3] >> 16;
 
 	switch (triggerType) {
 	case 0:




More information about the Scummvm-git-logs mailing list