Fix tautologies in calibfilter.cpp which cause a build failure when using…

Fix tautologies in calibfilter.cpp which cause a build failure when using -Werror=address with clang-3.5

http://code.opencv.org/issues/4048Signed-off-by: 's avatarJeremy Huddleston Sequoia <jeremyhu@apple.com>
parent c5b6c045
......@@ -95,11 +95,8 @@ bool CvCalibFilter::SetEtalon( CvCalibEtalonType type, double* params,
Stop();
if (latestPoints != NULL)
{
for( i = 0; i < MAX_CAMERAS; i++ )
cvFree( latestPoints + i );
}
if( type == CV_CALIB_ETALON_USER || type != etalonType )
{
......@@ -523,8 +520,6 @@ void CvCalibFilter::DrawPoints( CvMat** dstarr )
return;
}
if( latestCounts )
{
for( i = 0; i < cameraCount; i++ )
{
if( dstarr[i] && latestCounts[i] )
......@@ -583,7 +578,6 @@ void CvCalibFilter::DrawPoints( CvMat** dstarr )
}
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment