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

fix scan-build warnings #7248

Closed
wants to merge 3 commits into from
Closed

fix scan-build warnings #7248

wants to merge 3 commits into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Jun 12, 2021

No description provided.

It implied it would survive a NULL in there which it won't. Instead do
an assert.

Pointed out by scan-build.
scan-build-6 otherwise warns, saying: warning: The left operand of '>='
is a garbage value otherwise, which is false.

Later scan-builds don't claim this on the same code.
@bagder bagder changed the title fix two scan-build warnings fix scan-build warnings Jun 12, 2021
@bagder bagder closed this in 73f52ad Jun 13, 2021
bagder added a commit that referenced this pull request Jun 13, 2021
It implied it would survive a NULL in there which it won't. Instead do
an assert.

Pointed out by scan-build.

Closes #7248
bagder added a commit that referenced this pull request Jun 13, 2021
scan-build-6 otherwise warns, saying: warning: The left operand of '>='
is a garbage value otherwise, which is false.

Later scan-builds don't claim this on the same code.

Closes #7248
@bagder bagder deleted the bagder/scan-build-warns branch June 13, 2021 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

1 participant