[Scummvm-cvs-logs] SF.net SVN: scummvm:[46733] scummvm/trunk/engines/mohawk/myst_scripts.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Wed Dec 30 08:00:16 CET 2009


Revision: 46733
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46733&view=rev
Author:   mthreepwood
Date:     2009-12-30 07:00:16 +0000 (Wed, 30 Dec 2009)

Log Message:
-----------
Silence some warnings seen in the buildbot.

Modified Paths:
--------------
    scummvm/trunk/engines/mohawk/myst_scripts.cpp

Modified: scummvm/trunk/engines/mohawk/myst_scripts.cpp
===================================================================
--- scummvm/trunk/engines/mohawk/myst_scripts.cpp	2009-12-30 00:00:26 UTC (rev 46732)
+++ scummvm/trunk/engines/mohawk/myst_scripts.cpp	2009-12-30 07:00:16 UTC (rev 46733)
@@ -743,7 +743,7 @@
 
 		// TODO: Need to fix VIEW logic so this doesn't need
 		//       calculation at this level.
-		uint16 imageToDraw;
+		uint16 imageToDraw = 0;
 		if (_vm->_view.conditionalImageCount == 0)
 			imageToDraw = _vm->_view.mainImage;
 		else {
@@ -1088,8 +1088,8 @@
 		uint16 u2 = argv[9];
 
 		Common::Rect region2;
-		uint16 updateDirection2;
-		uint16 u3;
+		uint16 updateDirection2 = 0;
+		uint16 u3 = 0;
 		if (argc == 16) {
 			region2 = Common::Rect(argv[10], argv[11], argv[12], argv[13]);
 			updateDirection2 = argv[14];
@@ -1186,8 +1186,8 @@
 		uint16 u2 = argv[8];
 
 		Common::Rect region2;
-		uint16 updateDirection2;
-		uint16 u3;
+		uint16 updateDirection2 = 0;
+		uint16 u3 = 0;
 		if (argc == 15) {
 			region2 = Common::Rect(argv[9], argv[10], argv[11], argv[12]);
 			updateDirection2 = argv[13];


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list