[Scummvm-cvs-logs] scummvm master -> e9b04d018f13bf3f604175a97e3df7a4b8f7cac4

digitall dgturner at iee.org
Tue Nov 20 20:10:00 CET 2012


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:
e9b04d018f TONY: Fix compiler warnings about possible "used before set" variables.


Commit: e9b04d018f13bf3f604175a97e3df7a4b8f7cac4
    https://github.com/scummvm/scummvm/commit/e9b04d018f13bf3f604175a97e3df7a4b8f7cac4
Author: D G Turner (digitall at scummvm.org)
Date: 2012-11-20T11:05:45-08:00

Commit Message:
TONY: Fix compiler warnings about possible "used before set" variables.

Looking at this code and the code in clip2D, this shouldn't happen,
but this will prevent any future issues.

Changed paths:
    engines/tony/gfxcore.cpp



diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp
index 85e5c70..dc82c78 100644
--- a/engines/tony/gfxcore.cpp
+++ b/engines/tony/gfxcore.cpp
@@ -582,7 +582,7 @@ RMGfxSourceBuffer8::~RMGfxSourceBuffer8() {
 }
 
 void RMGfxSourceBuffer8::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim) {
-	int width, height, u, v;
+	int width = 0, height = 0, u = 0, v = 0;
 	int bufx = bigBuf.getDimx();
 	uint16 *buf = bigBuf;
 	byte *raw = _buf;
@@ -693,7 +693,7 @@ int RMGfxSourceBuffer8AB::calcTrasp(int fore, int back) {
 }
 
 void RMGfxSourceBuffer8AB::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim) {
-	int width, height, u, v;
+	int width = 0, height = 0, u = 0, v = 0;
 	int bufx = bigBuf.getDimx();
 	uint16 *buf = bigBuf;
 	byte *raw = _buf;






More information about the Scummvm-git-logs mailing list