build: GCC12 warnings

pull/3253/head
Alexander Alekhin 3 years ago
parent c2005e4792
commit ac6a5d44d6
  1. 2
      modules/surface_matching/src/pose_3d.cpp

@ -273,7 +273,6 @@ int PoseCluster3D::readPoseCluster(FILE* f)
status = fread(&id, sizeof(int), 1, f);
status = fread(&numVotes, sizeof(int), 1, f);
status = fread(&numPoses, sizeof(int), 1, f);
fclose(f);
poseList.clear();
poseList.resize(numPoses);
@ -283,6 +282,7 @@ int PoseCluster3D::readPoseCluster(FILE* f)
poseList[i]->readPose(f);
}
fclose(f);
return 0;
}

Loading…
Cancel
Save