Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure pointer is checked before dereferencing #3002

Merged
merged 3 commits into from
Oct 22, 2024
Merged

Conversation

dschwoerer
Copy link
Contributor

dynamic_cast can return a nullptr, thus we should check. Otherwise gcc raises a warning.

dynamic_cast can return a nullptr, thus we should check. Otherwise gcc
raises a warning.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

src/mesh/impls/bout/boutmesh.cxx Outdated Show resolved Hide resolved
src/mesh/impls/bout/boutmesh.cxx Outdated Show resolved Hide resolved
dschwoerer and others added 2 commits October 22, 2024 12:10
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@dschwoerer dschwoerer added the small-change Changes less than 100 lines - should be quick to review label Oct 22, 2024
@dschwoerer
Copy link
Contributor Author

RTD is randomly failing, other tests pass

@bendudson bendudson merged commit 43aa3bf into next Oct 22, 2024
2 of 3 checks passed
@bendudson bendudson deleted the gcc-check-nullptr branch October 22, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small-change Changes less than 100 lines - should be quick to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants