From 7df92bbb77c2b213e9fd634246450bfcc5b78f11 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 31 Mar 2014 17:30:08 +0400 Subject: [PATCH] fixed C4505 --- modules/nonfree/perf/perf_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/nonfree/perf/perf_main.cpp b/modules/nonfree/perf/perf_main.cpp index c9872a49ce..d46a36a13a 100644 --- a/modules/nonfree/perf/perf_main.cpp +++ b/modules/nonfree/perf/perf_main.cpp @@ -31,7 +31,9 @@ static const char * impls[] = { int main(int argc, char **argv) { ::perf::TestBase::setPerformanceStrategy(::perf::PERF_STRATEGY_SIMPLE); -#if defined(HAVE_CUDA) +#if defined(HAVE_CUDA) && defined(HAVE_OPENCL) + CV_PERF_TEST_MAIN_INTERNALS(nonfree, impls, perf::printCudaInfo(), dumpOpenCLDevice()); +#elif defined(HAVE_CUDA) CV_PERF_TEST_MAIN_INTERNALS(nonfree, impls, perf::printCudaInfo()); #elif defined(HAVE_OPENCL) CV_PERF_TEST_MAIN_INTERNALS(nonfree, impls, dumpOpenCLDevice());