Fix tautologies in calibfilter.cpp which cause a build failure when using -Werror=address with clang-3.5
http://code.opencv.org/issues/4048 Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
c5b6c0456d
commit
35f96d6da7
@ -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] )
|
||||
@ -584,7 +579,6 @@ void CvCalibFilter::DrawPoints( CvMat** dstarr )
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Get total number of frames and already accepted pair of frames */
|
||||
|
Loading…
x
Reference in New Issue
Block a user