mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-18 17:24:28 +08:00
Merge pull request #3253 from alalek:fix_warnings_gcc12_3.4
This commit is contained in:
@@ -273,7 +273,6 @@ int PoseCluster3D::readPoseCluster(FILE* f)
|
|||||||
status = fread(&id, sizeof(int), 1, f);
|
status = fread(&id, sizeof(int), 1, f);
|
||||||
status = fread(&numVotes, sizeof(int), 1, f);
|
status = fread(&numVotes, sizeof(int), 1, f);
|
||||||
status = fread(&numPoses, sizeof(int), 1, f);
|
status = fread(&numPoses, sizeof(int), 1, f);
|
||||||
fclose(f);
|
|
||||||
|
|
||||||
poseList.clear();
|
poseList.clear();
|
||||||
poseList.resize(numPoses);
|
poseList.resize(numPoses);
|
||||||
@@ -283,6 +282,7 @@ int PoseCluster3D::readPoseCluster(FILE* f)
|
|||||||
poseList[i]->readPose(f);
|
poseList[i]->readPose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fclose(f);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user