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

BUG: -1 was being returned in a function that returns bool #5128

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

seanm
Copy link
Contributor

@seanm seanm commented Jan 8, 2025

Found by cppcheck.

The nearby comment occurs elsewhere in the codebase, and there it was changed to return false so I did the same here.

Found by cppcheck.

The nearby comment occurs elsewhere in the codebase, and there it was changed to `return false` so I did the same here.
@github-actions github-actions bot added type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances area:Core Issues affecting the Core module labels Jan 8, 2025
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

@seanm fantastic!!

I have seen odd warnings in these files from some GCC versions in some situations for some time -- hopefully this addresses it!

CI failures are unrelated -- data.kitware.com was choking.

@thewtex thewtex merged commit 43bdc37 into InsightSoftwareConsortium:master Jan 9, 2025
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Core Issues affecting the Core module type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants