[Scummvm-cvs-logs] SF.net SVN: scummvm:[48501] tools/trunk/engines

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Apr 4 11:51:13 CEST 2010


Revision: 48501
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48501&view=rev
Author:   fingolfin
Date:     2010-04-04 09:51:13 +0000 (Sun, 04 Apr 2010)

Log Message:
-----------
Fix warnings

Modified Paths:
--------------
    tools/trunk/engines/cruise/extract_cruise_pc.cpp
    tools/trunk/engines/gob/degob_script.cpp

Modified: tools/trunk/engines/cruise/extract_cruise_pc.cpp
===================================================================
--- tools/trunk/engines/cruise/extract_cruise_pc.cpp	2010-04-04 09:39:40 UTC (rev 48500)
+++ tools/trunk/engines/cruise/extract_cruise_pc.cpp	2010-04-04 09:51:13 UTC (rev 48501)
@@ -168,7 +168,7 @@
 			const int i = _freq[p];
 			int index = p + 1;
 			if (_freq[index] < i) {
-				while (_freq[++index] < i);
+				while (_freq[++index] < i) {}
 				--index;
 				_freq[p] = _freq[index];
 				_freq[index] = i;

Modified: tools/trunk/engines/gob/degob_script.cpp
===================================================================
--- tools/trunk/engines/gob/degob_script.cpp	2010-04-04 09:39:40 UTC (rev 48500)
+++ tools/trunk/engines/gob/degob_script.cpp	2010-04-04 09:51:13 UTC (rev 48501)
@@ -579,7 +579,9 @@
 			break;
 
 		default:
-			while (((char) readUint8()) != stopToken);
+			// Unknown token -- don't know how to handle this, so just
+			// skip over everything until we reach the stopToken.
+			while (((char) readUint8()) != stopToken) {}
 			return printStr("Invalid operator in expression: <%d>", (int16) operation);
 			break;
 		}


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