[Scummvm-cvs-logs] SF.net SVN: scummvm:[42856] scummvm/trunk/engines/gob

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Tue Jul 28 17:05:44 CEST 2009


Revision: 42856
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42856&view=rev
Author:   drmccoy
Date:     2009-07-28 15:05:44 +0000 (Tue, 28 Jul 2009)

Log Message:
-----------
Silencing two "empty loop body" warnings

Modified Paths:
--------------
    scummvm/trunk/engines/gob/scenery.cpp
    scummvm/trunk/engines/gob/script.cpp

Modified: scummvm/trunk/engines/gob/scenery.cpp
===================================================================
--- scummvm/trunk/engines/gob/scenery.cpp	2009-07-28 00:23:17 UTC (rev 42855)
+++ scummvm/trunk/engines/gob/scenery.cpp	2009-07-28 15:05:44 UTC (rev 42856)
@@ -185,7 +185,7 @@
 			_staticPictToSprite[7 * sceneryIndex + i] = sprIndex;
 			_spriteRefs[sprIndex]++;
 		} else {
-			for (sprIndex = 19; _vm->_draw->_spritesArray[sprIndex] != 0; sprIndex--);
+			for (sprIndex = 19; _vm->_draw->_spritesArray[sprIndex] != 0; sprIndex--) { }
 
 			_staticPictToSprite[7 * sceneryIndex + i] = sprIndex;
 			_spriteRefs[sprIndex] = 1;

Modified: scummvm/trunk/engines/gob/script.cpp
===================================================================
--- scummvm/trunk/engines/gob/script.cpp	2009-07-28 00:23:17 UTC (rev 42855)
+++ scummvm/trunk/engines/gob/script.cpp	2009-07-28 15:05:44 UTC (rev 42856)
@@ -201,7 +201,7 @@
 char *Script::readString(int32 length) {
 	if (length < 0) {
 		length = 0;
-		while (_totPtr[length++] != '\0');
+		while (_totPtr[length++] != '\0') { }
 	}
 
 	char *string = (char *) _totPtr;


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