From dfedea7c671be46b0bb874065873747a4bf08913 Mon Sep 17 00:00:00 2001 From: Jan Lebert Date: Tue, 31 Oct 2023 10:28:01 -0700 Subject: [PATCH] Fix IntegrateRGBD example compilation (#6453) Compilation failed for gcc-12 with: ``` examples/cpp/IntegrateRGBD.cpp:71:15: error: argument 1 null where non-null expected [-Werror=nonnull] 71 | fclose(file); ``` --- examples/cpp/IntegrateRGBD.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/cpp/IntegrateRGBD.cpp b/examples/cpp/IntegrateRGBD.cpp index dd5a8eedddb..39fc3d98225 100644 --- a/examples/cpp/IntegrateRGBD.cpp +++ b/examples/cpp/IntegrateRGBD.cpp @@ -68,7 +68,6 @@ int main(int argc, char *argv[]) { FILE *file = utility::filesystem::FOpen(match_filename, "r"); if (file == NULL) { utility::LogWarning("Unable to open file {}", match_filename); - fclose(file); return 0; } char buffer[DEFAULT_IO_BUFFER_SIZE];