mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
backport fixes for static analyzer warnings
Commits: -09837928d9-10fb88d027Excluded changes with std::atomic (C++98 requirement)
This commit is contained in:
@@ -306,7 +306,7 @@ void Mat::copyTo( OutputArray _dst ) const
|
||||
if( total() != 0 )
|
||||
{
|
||||
const Mat* arrays[] = { this, &dst };
|
||||
uchar* ptrs[2];
|
||||
uchar* ptrs[2] = {};
|
||||
NAryMatIterator it(arrays, ptrs, 2);
|
||||
size_t sz = it.size*elemSize();
|
||||
|
||||
@@ -399,7 +399,7 @@ void Mat::copyTo( OutputArray _dst, InputArray _mask ) const
|
||||
}
|
||||
|
||||
const Mat* arrays[] = { this, &dst, &mask, 0 };
|
||||
uchar* ptrs[3];
|
||||
uchar* ptrs[3] = {};
|
||||
NAryMatIterator it(arrays, ptrs);
|
||||
Size sz((int)(it.size*mcn), 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user