1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Utilize CV_UNUSED macro

This commit is contained in:
Hamdi Sahloul
2018-09-07 20:33:52 +09:00
parent f3fae0dae0
commit a39e0daacf
98 changed files with 468 additions and 468 deletions
+2 -2
View File
@@ -491,7 +491,7 @@ void cv::parallel_for_(const cv::Range& range, const cv::ParallelLoopBody& body,
else // nested parallel_for_() calls are not parallelized
#endif // CV_PARALLEL_FRAMEWORK
{
(void)nstripes;
CV_UNUSED(nstripes);
body(range);
}
}
@@ -664,7 +664,7 @@ unsigned defaultNumberOfThreads()
void cv::setNumThreads( int threads_ )
{
(void)threads_;
CV_UNUSED(threads_);
#ifdef CV_PARALLEL_FRAMEWORK
int threads = (threads_ < 0) ? defaultNumberOfThreads() : (unsigned)threads_;
numThreads = threads;