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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user