Skip to content

Fix IntegrateRGBD example compilation - #6453

Merged
ssheorey merged 1 commit into
isl-org:masterfrom
sitic:master
Oct 31, 2023
Merged

ssheorey merged 1 commit into
isl-org:masterfrom
sitic:master

Conversation

@sitic

@sitic sitic commented Oct 26, 2023 •

Copy link
Copy Markdown
Contributor

Compilation of Open3D failed for gcc-12 with:

examples/cpp/IntegrateRGBD.cpp:71:15: error: argument 1 null where non-null expected [-Werror=nonnull]
   71 |         fclose(file);

Since file is already NULL, we shouldn't try to fclose() it.

Type

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have run python util/check_style.py --apply to apply Open3D code style
    to my code.
  • This PR changes Open3D behavior or adds new functionality.
    • Both C++ (Doxygen) and Python (Sphinx / Google style) documentation is
      updated accordingly.
    • I have added or updated C++ and / or Python unit tests OR included test
      results
      (e.g. screenshots or numbers) here.
  • I will follow up and update the code if CI fails.
  • For fork PRs, I have selected Allow edits from maintainers.

This change is Reviewable

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);
```
@update-docs

update-docs Bot commented Oct 26, 2023

Copy link
Copy Markdown

Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes.

@benjaminum benjaminum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: 0 of 1 files reviewed, all discussions resolved

@ssheorey
ssheorey merged commit dfedea7 into isl-org:master Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants