Fixed warning with "uninitialized local variable"
authorAlexander Karsakov <alexander.karsakov@itseez.com>
Tue, 12 Aug 2014 06:35:15 +0000 (10:35 +0400)
committerAlexander Karsakov <alexander.karsakov@itseez.com>
Tue, 12 Aug 2014 06:35:15 +0000 (10:35 +0400)
modules/core/perf/opencl/perf_dxt.cpp

index 8a45a8c..0bed186 100644 (file)
@@ -75,7 +75,7 @@ OCL_PERF_TEST_P(DftFixture, Dft, ::testing::Combine(Values(C2C, R2R, C2R, R2C),
     const Size srcSize = get<1>(params);
     int flags = get<2>(params);
 
-    int in_cn, out_cn;
+    int in_cn = 0, out_cn = 0;
     switch (dft_type)
     {
     case R2R: flags |= cv::DFT_REAL_OUTPUT; in_cn = 1; out_cn = 1; break;