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

Various cppcheck fixes, added suppression file for the rest #4

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

seanm
Copy link
Collaborator

@seanm seanm commented Jan 18, 2025

No description provided.

seanm added 7 commits January 17, 2025 20:24
`result` was defererenced *before* checking that it was not null.

There are only 3 callers of this private function, and in all cases the two pointer parameters are never null, so the branch was already dead. So changed the `if` into an assert.
From the lines above, it's pretty clear what this was meant to do.
`fslio->niftiptr` was being dereferenced before it was checked for null ( a couple of lines later).
With these suppressions, and previous fixes, there are no more warnings
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.

1 participant