[Scummvm-cvs-logs] SF.net SVN: scummvm:[52685] scummvm/trunk/engines/testbed/graphics.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Sun Sep 12 16:20:52 CEST 2010


Revision: 52685
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52685&view=rev
Author:   sev
Date:     2010-09-12 14:20:52 +0000 (Sun, 12 Sep 2010)

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

Modified Paths:
--------------
    scummvm/trunk/engines/testbed/graphics.cpp

Modified: scummvm/trunk/engines/testbed/graphics.cpp
===================================================================
--- scummvm/trunk/engines/testbed/graphics.cpp	2010-09-12 14:18:40 UTC (rev 52684)
+++ scummvm/trunk/engines/testbed/graphics.cpp	2010-09-12 14:20:52 UTC (rev 52685)
@@ -403,7 +403,7 @@
 	"upon your initial state.";
 
 	Common::Point pt(0, 100);
-	Common::Rect rect = Testsuite::writeOnScreen("Testing fullscreen mode", pt);
+	Testsuite::writeOnScreen("Testing fullscreen mode", pt);
 	
 	if (Testsuite::handleInteractiveInput(info, "OK", "Skip", kOptionRight)) {
 		Testsuite::logPrintf("Info! Skipping test : FullScreenMode\n");
@@ -496,7 +496,7 @@
 
 	bool isFeaturePresent;
 	bool isFeatureEnabled;
-	bool passed;
+	bool passed = true;
 	Common::String prompt;
 	OptionSelected shouldSelect;
 
@@ -693,7 +693,7 @@
 	}
 	
 	Common::Point pt(0, 100);
-	Common::Rect rect = Testsuite::writeOnScreen("Testing Iconifying window", pt);
+	Testsuite::writeOnScreen("Testing Iconifying window", pt);
 
 	bool isFeaturePresent;
 	bool isFeatureEnabled;
@@ -915,7 +915,6 @@
 		Testsuite::logPrintf("Info! Skipping test : palette Rotation\n");
 		return true;
 	}
-	Common::Point pt(0, 10);
 	Testsuite::clearEntireScreen();
 
 	// Use 256 colors
@@ -1022,7 +1021,7 @@
 
 	int numFormatsTested = 0;
 	int numPassed = 0;
-	bool numFailed = 0;
+	int numFailed = 0;
 
 	Testsuite::logDetailedPrintf("Testing Pixel Formats. Size of list : %d\n", pfList.size());
 
@@ -1092,7 +1091,7 @@
 	Testsuite::clearScreen();
 
 	if (numFailed) {
-		Testsuite::logDetailedPrintf("Pixel Format test: Failed : %d, Passed : %d, Ignored %d\n",numFailed, numPassed, numFormatsTested - (numPassed + numFailed));
+		Testsuite::logDetailedPrintf("Pixel Format test: Failed : %d, Passed : %d, Ignored %d\n", numFailed, numPassed, numFormatsTested - (numPassed + numFailed));
 		return false;
 	}
 


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