From ac6a5d44d69a45d4c51d320dbfe65802529de448 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sun, 15 May 2022 16:21:48 +0000 Subject: [PATCH] build: GCC12 warnings --- modules/surface_matching/src/pose_3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/surface_matching/src/pose_3d.cpp b/modules/surface_matching/src/pose_3d.cpp index 165ec1974..89a8205f4 100644 --- a/modules/surface_matching/src/pose_3d.cpp +++ b/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; }