Fix OS X build warnings

This commit is contained in:
Andrey Kamaev
2012-10-22 19:13:29 +04:00
parent 40030d2ca0
commit 2e91405833
9 changed files with 52 additions and 24 deletions

View File

@@ -414,7 +414,7 @@ static void icvFindStereoCorrespondenceByBirchfieldDP( uchar* src1, uchar* src2,
for( x = 1; x < imgW; x++ )
{
i = x - 1;
for( ; x < imgW && dest[y*widthStep+x] == dest[y*widthStep+x-1]; x++ );
for( ; x < imgW && dest[y*widthStep+x] == dest[y*widthStep+x-1]; x++ ) {}
s = x - i;
for( ; i < x; i++ )
{