[Scummvm-cvs-logs] SF.net SVN: scummvm: [22250] scummvm/trunk/common/md5.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Apr 30 15:59:05 CEST 2006


Revision: 22250
Author:   fingolfin
Date:     2006-04-30 15:58:44 -0700 (Sun, 30 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22250&view=rev

Log Message:
-----------
Avoid 'unused variable' warning when using DISABLE_MD5

Modified Paths:
--------------
    scummvm/trunk/common/md5.cpp
Modified: scummvm/trunk/common/md5.cpp
===================================================================
--- scummvm/trunk/common/md5.cpp	2006-04-30 22:52:10 UTC (rev 22249)
+++ scummvm/trunk/common/md5.cpp	2006-04-30 22:58:44 UTC (rev 22250)
@@ -235,11 +235,6 @@
 
 bool md5_file(const char *name, uint8 digest[16], uint32 length) {
 	File f;
-	md5_context ctx;
-	int i;
-	unsigned char buf[1000];
-	bool restricted = (length != 0);
-	int readlen;
 
 	f.open(name);
 	if (!f.isOpen()) {
@@ -250,6 +245,11 @@
 #ifdef DISABLE_MD5
 	memset(digest, 0, 16);
 #else
+	md5_context ctx;
+	int i;
+	unsigned char buf[1000];
+	bool restricted = (length != 0);
+	int readlen;
 
 	if (!restricted || sizeof(buf) <= length)
 		readlen = sizeof(buf);


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