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

dwatteau noreply at scummvm.org
Fri Jul 17 07:46:30 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:
eebfe2824e SKY: Fix some -Wunused-but-set-variable warnings


Commit: eebfe2824ef84d628aa41b6d4f14261e9364c856
    https://github.com/scummvm/scummvm/commit/eebfe2824ef84d628aa41b6d4f14261e9364c856
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2026-07-17T09:42:15+02:00

Commit Message:
SKY: Fix some -Wunused-but-set-variable warnings

`scrPtr` can also be dropped, while there.

Unused since commit b97b4dc390dd83fb3af3d66fe0bec554484a7c9a.

Changed paths:
    engines/sky/screen.cpp


diff --git a/engines/sky/screen.cpp b/engines/sky/screen.cpp
index f25d9b24a0c..906ce4d9990 100644
--- a/engines/sky/screen.cpp
+++ b/engines/sky/screen.cpp
@@ -723,29 +723,22 @@ void Screen::processSequence() {
 			}
 		} while (nrToDo == 0xFF);
 	} while (screenPos < (GAME_SCREEN_WIDTH * GAME_SCREEN_HEIGHT));
-	uint8 *gridPtr = _seqGrid; uint8 *scrPtr = _currentScreen; uint8 *rectPtr = NULL;
-	uint8 rectWid = 0, rectX = 0, rectY = 0;
+	uint8 *gridPtr = _seqGrid;
+	uint8 rectWid = 0;
 	for (uint8 cnty = 0; cnty < 12; cnty++) {
 		for (uint8 cntx = 0; cntx < 20; cntx++) {
 			if (*gridPtr) {
-				if (!rectWid) {
-					rectX = cntx;
-					rectY = cnty;
-					rectPtr = scrPtr;
-				}
 				rectWid++;
 			} else if (rectWid) {
 				renderFinalFrame();
 				rectWid = 0;
 			}
-			scrPtr += 16;
 			gridPtr++;
 		}
 		if (rectWid) {
 			renderFinalFrame();
 			rectWid = 0;
 		}
-		scrPtr += 15 * GAME_SCREEN_WIDTH;
 	}
 	_system->updateScreen();
 	_seqInfo.framesLeft--;




More information about the Scummvm-git-logs mailing list