1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 02:16:34 +08:00

build: GCC12 warnings

This commit is contained in:
Alexander Alekhin
2022-05-15 16:21:48 +00:00
parent c2005e4792
commit ac6a5d44d6

View File

@@ -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;
} }