Skip to content

Commit

Permalink
Fix IntegrateRGBD example compilation
Browse files Browse the repository at this point in the history
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);
```
  • Loading branch information
sitic authored Oct 26, 2023
1 parent 881ae76 commit acdef57
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/cpp/IntegrateRGBD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit acdef57

Please sign in to comment.