1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-16 13:57:05 +08:00

backport: Fixed warnings produced by clang-9.0.0

83fc27cb99
This commit is contained in:
Maksim Shabunin
2019-01-28 14:48:32 +03:00
committed by Alexander Alekhin
parent f5e493b607
commit cdd19ebead
7 changed files with 15 additions and 18 deletions

View File

@@ -55,12 +55,12 @@ CV_EXPORTS_W Mat readOpticalFlow( const String& path )
Mat_<Point2f> flow;
std::ifstream file(path.c_str(), std::ios_base::binary);
if ( !file.good() )
return flow; // no file - return empty matrix
return CV_CXX_MOVE(flow); // no file - return empty matrix
float tag;
file.read((char*) &tag, sizeof(float));
if ( tag != FLOW_TAG_FLOAT )
return flow;
return CV_CXX_MOVE(flow);
int width, height;
@@ -79,14 +79,14 @@ CV_EXPORTS_W Mat readOpticalFlow( const String& path )
if ( !file.good() )
{
flow.release();
return flow;
return CV_CXX_MOVE(flow);
}
flow(i, j) = u;
}
}
file.close();
return flow;
return CV_CXX_MOVE(flow);
}
CV_EXPORTS_W bool writeOpticalFlow( const String& path, InputArray flow )
{