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

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Wed Jul 1 19:33:20 CEST 2009


Revision: 42005
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42005&view=rev
Author:   mthreepwood
Date:     2009-07-01 17:33:20 +0000 (Wed, 01 Jul 2009)

Log Message:
-----------
Silence some gcc warnings

Modified Paths:
--------------
    tools/trunk/compress_gob.cpp
    tools/trunk/compress_gob.h

Modified: tools/trunk/compress_gob.cpp
===================================================================
--- tools/trunk/compress_gob.cpp	2009-07-01 17:19:12 UTC (rev 42004)
+++ tools/trunk/compress_gob.cpp	2009-07-01 17:33:20 UTC (rev 42005)
@@ -348,7 +348,7 @@
 	uint16 dicoIndex;
 	uint32 unpackedIndex, size;
 	uint8 cmd;
-	uint8 buffIndex, cpt, i;
+	uint8 buffIndex, cpt;
 	uint16 resultcheckpos;
 	byte resultchecklength;
 
@@ -402,7 +402,7 @@
 			counter--;
 		} else {
 // Copy the string in the dictionary
-			for (i=0; i < resultchecklength; i++)
+			for (int i = 0; i < resultchecklength; i++)
 				dico[((dicoIndex + i) % 4096)] = dico[((resultcheckpos + i) % 4096)];
 
 // Write the copy string command

Modified: tools/trunk/compress_gob.h
===================================================================
--- tools/trunk/compress_gob.h	2009-07-01 17:19:12 UTC (rev 42004)
+++ tools/trunk/compress_gob.h	2009-07-01 17:33:20 UTC (rev 42005)
@@ -31,4 +31,4 @@
 #define MODE_FORCE  2
 #define MODE_SET    4
 
-#endif
\ No newline at end of file
+#endif


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