diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-05 15:55:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-05 15:55:55 +0300 |
commit | d1bb1b375d657f0821ccfebf18fa1c3873314690 (patch) | |
tree | eb83bbf7242b2c367c4df19113f37f6c6ab9faa2 /src/test/testmain.cpp | |
parent | 9f87b4c92e3a4d524250dbbb376cd0f59b7d995e (diff) | |
download | mv-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.gz mv-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.bz2 mv-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.xz mv-d1bb1b375d657f0821ccfebf18fa1c3873314690.zip |
Fix useless variables initialisations.
Diffstat (limited to 'src/test/testmain.cpp')
-rw-r--r-- | src/test/testmain.cpp | 12 |
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; |