[Scummvm-git-logs] scummvm master -> 60e916a61995976d9900a792dbb0bde9e41816c5

digitall noreply at scummvm.org
Sun Nov 29 01:21:27 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:
60e916a619 NGI: Fix Shadowed Variable GCC Compiler Warnings


Commit: 60e916a61995976d9900a792dbb0bde9e41816c5
    https://github.com/scummvm/scummvm/commit/60e916a61995976d9900a792dbb0bde9e41816c5
Author: D G Turner (digitall at scummvm.org)
Date: 2026-11-29T01:20:54Z

Commit Message:
NGI: Fix Shadowed Variable GCC Compiler Warnings

Changed paths:
    engines/ngi/box2d/Common/b2Draw.h
    engines/ngi/box2d/Common/b2Math.h


diff --git a/engines/ngi/box2d/Common/b2Draw.h b/engines/ngi/box2d/Common/b2Draw.h
index 015b9977463..1f6fa73736b 100644
--- a/engines/ngi/box2d/Common/b2Draw.h
+++ b/engines/ngi/box2d/Common/b2Draw.h
@@ -24,7 +24,7 @@ namespace NGI {
 struct b2Color
 {
 	b2Color() {}
-	b2Color(float32 r, float32 g, float32 b) : r(r), g(g), b(b) {}
+	b2Color(float32 r_, float32 g_, float32 b_) : r(r_), g(g_), b(b_) {}
 	void Set(float32 ri, float32 gi, float32 bi) { r = ri; g = gi; b = bi; }
 	float32 r, g, b;
 };
diff --git a/engines/ngi/box2d/Common/b2Math.h b/engines/ngi/box2d/Common/b2Math.h
index 94a2d635c19..ff754a6465f 100644
--- a/engines/ngi/box2d/Common/b2Math.h
+++ b/engines/ngi/box2d/Common/b2Math.h
@@ -68,7 +68,7 @@ struct b2Vec2
 	b2Vec2() {}
 
 	/// Construct using coordinates.
-	constexpr b2Vec2(float32 x, float32 y) : x(x), y(y) {}
+	constexpr b2Vec2(float32 x_, float32 y_) : x(x_), y(y_) {}
 
 	/// Set this vector to all zeros.
 	void SetZero() { x = 0.0f; y = 0.0f; }
@@ -159,7 +159,7 @@ struct b2Vec3
 	b2Vec3() {}
 
 	/// Construct using coordinates.
-	b2Vec3(float32 x, float32 y, float32 z) : x(x), y(y), z(z) {}
+	b2Vec3(float32 x_, float32 y_, float32 z_) : x(x_), y(y_), z(z_) {}
 
 	/// Set this vector to all zeros.
 	void SetZero() { x = 0.0f; y = 0.0f; z = 0.0f; }




More information about the Scummvm-git-logs mailing list