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

eriktorbjorn noreply at scummvm.org
Tue Jun 3 16:34:28 UTC 2025


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:
b3a996a05a M4: Rename RGB constructor parameters to not shadow member variables


Commit: b3a996a05a4878e5ae2086c1529f8386af73edb4
    https://github.com/scummvm/scummvm/commit/b3a996a05a4878e5ae2086c1529f8386af73edb4
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2025-06-03T18:33:37+02:00

Commit Message:
M4: Rename RGB constructor parameters to not shadow member variables

This fixes about 950 GCC warnings.

Changed paths:
    engines/m4/m4_types.h


diff --git a/engines/m4/m4_types.h b/engines/m4/m4_types.h
index 669a0c1f9f1..c8bbda3bf7f 100644
--- a/engines/m4/m4_types.h
+++ b/engines/m4/m4_types.h
@@ -89,7 +89,7 @@ struct RGB8 {
 	byte r = 0, g = 0, b = 0;
 
 	constexpr RGB8() = default;
-	constexpr RGB8(const byte r, const byte g, const byte b) : r(r), g(g), b(b) {}
+	constexpr RGB8(const byte red, const byte green, const byte blue) : r(red), g(green), b(blue) {}
 } PACKED_STRUCT;
 #include "common/pack-end.h"	// END STRUCT PACKING
 




More information about the Scummvm-git-logs mailing list