mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Warning supression fix for XCode 13.1 and newer. Backport #23203
This commit is contained in:
@@ -120,16 +120,13 @@ medianPartition( size_t* ofs, int a, int b, const float* vals )
|
||||
}
|
||||
|
||||
float pivot = vals[ofs[middle]];
|
||||
int less = 0, more = 0;
|
||||
for( k = a0; k < middle; k++ )
|
||||
{
|
||||
CV_Assert(vals[ofs[k]] <= pivot);
|
||||
less += vals[ofs[k]] < pivot;
|
||||
}
|
||||
for( k = b0; k > middle; k-- )
|
||||
{
|
||||
CV_Assert(vals[ofs[k]] >= pivot);
|
||||
more += vals[ofs[k]] > pivot;
|
||||
}
|
||||
|
||||
return vals[ofs[middle]];
|
||||
|
||||
Reference in New Issue
Block a user