summaryrefslogtreecommitdiff
path: root/src/test/testmain.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-05 15:55:55 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-05 15:55:55 +0300
commitd1bb1b375d657f0821ccfebf18fa1c3873314690 (patch)
treeeb83bbf7242b2c367c4df19113f37f6c6ab9faa2 /src/test/testmain.cpp
parent9f87b4c92e3a4d524250dbbb376cd0f59b7d995e (diff)
downloadplus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.gz
plus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.bz2
plus-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.xz
plus-d1bb1b375d657f0821ccfebf18fa1c3873314690.zip
Fix useless variables initialisations.
Diffstat (limited to 'src/test/testmain.cpp')
-rw-r--r--src/test/testmain.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/test/testmain.cpp b/src/test/testmain.cpp
index c6023a53f..f2c978b5b 100644
--- a/src/test/testmain.cpp
+++ b/src/test/testmain.cpp
@@ -70,9 +70,6 @@ int TestMain::exec(const bool testAudio)
{
initConfig();
int softwareTest = invokeSoftwareRenderTest("1");
- int fastOpenGLTest = -1;
- int safeOpenGLTest = -1;
- int videoDetectTest = -1;
int soundTest = -1;
int rescaleTest[3];
int softFps = 0;
@@ -80,19 +77,18 @@ int TestMain::exec(const bool testAudio)
int safeOpenGLFps = 0;
int openGLMode = 0;
- int maxFps = 0;
int detectMode = 0;
rescaleTest[0] = -1;
rescaleTest[1] = -1;
rescaleTest[2] = -1;
std::string info;
- videoDetectTest = invokeTest("99");
+ int videoDetectTest = invokeTest("99");
if (!videoDetectTest)
detectMode = readValue2(99);
- fastOpenGLTest = invokeFastOpenGLRenderTest("2");
- safeOpenGLTest = invokeSafeOpenGLRenderTest("3");
+ int fastOpenGLTest = invokeFastOpenGLRenderTest("2");
+ int safeOpenGLTest = invokeSafeOpenGLRenderTest("3");
if (testAudio)
soundTest = invokeTest4();
else
@@ -177,7 +173,7 @@ int TestMain::exec(const bool testAudio)
}
info += ".";
- maxFps = softFps;
+ int maxFps = softFps;
if (maxFps < fastOpenGLFps)
{
openGLMode = 1;