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

whoozle noreply at scummvm.org
Fri Jun 26 09:56:50 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:
b9d6b9c207 GUI: JANITORIAL: fix unused variable warnings


Commit: b9d6b9c2077283ad88238a58cb9e97b6ca13dfc9
    https://github.com/scummvm/scummvm/commit/b9d6b9c2077283ad88238a58cb9e97b6ca13dfc9
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-06-26T10:56:20+01:00

Commit Message:
GUI: JANITORIAL: fix unused variable warnings

Changed paths:
    gui/options.cpp
    gui/widgets/grid.cpp


diff --git a/gui/options.cpp b/gui/options.cpp
index 91c73b3a537..bba2cd1af85 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -336,7 +336,7 @@ void OptionsDialog::build() {
 			const Common::RenderModeDescription *p = Common::g_renderModes;
 			const Common::RenderMode renderMode = Common::parseRenderMode(ConfMan.get("render_mode", _domain));
 			int sel = 0;
-			for (int i = 0; p->code; ++p, ++i) {
+			for (; p->code; ++p) {
 				if (renderMode == p->id)
 					sel = p->id;
 			}
@@ -350,7 +350,7 @@ void OptionsDialog::build() {
 				const Common::RotationModeDescription *p = Common::g_rotationModes;
 				const Common::RotationMode rotationMode = Common::parseRotationMode(ConfMan.getInt("rotation_mode", _domain));
 				int sel = 0;
-				for (int i = 0; p->description; ++p, ++i) {
+				for (; p->description; ++p) {
 					if (rotationMode == p->id)
 						sel = p->id;
 				}
diff --git a/gui/widgets/grid.cpp b/gui/widgets/grid.cpp
index 8c77357705f..f4beb0514fa 100644
--- a/gui/widgets/grid.cpp
+++ b/gui/widgets/grid.cpp
@@ -20,7 +20,7 @@
  */
 
 #include "common/system.h"
-#include "common/file.h"
+#include "common/stream.h"
 #include "common/language.h"
 #include "common/platform.h"
 #include "common/tokenizer.h"
@@ -689,11 +689,10 @@ void GridWidget::sortGroups() {
 
 		Common::U32StringTokenizer tok(_filter);
 		Common::U32String tmp;
-		int n = 0;
 
 		_sortedEntryList.clear();
 
-		for (GridItemInfo *i = _dataEntryList.begin(); i != _dataEntryList.end(); ++i, ++n) {
+		for (GridItemInfo *i = _dataEntryList.begin(); i != _dataEntryList.end(); ++i) {
 			tmp = i->title;
 			tmp.toLowercase();
 			bool matches = true;
@@ -1097,7 +1096,7 @@ void GridWidget::applyScrollPos() {
 		reloadThumbnails();
 
 	assignEntriesToItems();
-	scrollBarRecalc();	
+	scrollBarRecalc();
 	markAsDirty();
 	if (_highlightedItem)
 		_highlightedItem->handleMouseLeft(0);




More information about the Scummvm-git-logs mailing list