From f3dfdfef8a91bd9b42a1c2176f7b6cfdd8d12293 Mon Sep 17 00:00:00 2001 From: Alexander Karsakov Date: Tue, 12 Aug 2014 10:35:15 +0400 Subject: [PATCH] Fixed warning with "uninitialized local variable" --- modules/core/perf/opencl/perf_dxt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/perf/opencl/perf_dxt.cpp b/modules/core/perf/opencl/perf_dxt.cpp index 8a45a8c1a..0bed186c4 100644 --- a/modules/core/perf/opencl/perf_dxt.cpp +++ b/modules/core/perf/opencl/perf_dxt.cpp @@ -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;