-
Notifications
You must be signed in to change notification settings - Fork 528
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
NoNewGlobals for Comm::AcceptLimiter::Instance_ #1954
Conversation
Detected by Coverity, CID 1441988, "Useless call". comm_init calls Comm::AcceptLimiter::Instance() for its side effects, but ignores the return value. Explicitly instruct the compiler to do that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for improving this code and addressing Coverity defect at the same time!
I have adjusted PR title to better (IMO) reflect current PR state. I have also removed a technical problem and a misspelling from PR description. Please adjust further as needed.
Inspired by Coverity. CID 1441988: Useless call (USELESS_CALL).
I am confused by the change. Past PRs doing similar things (e.g #1750, #1781 , #1791, #1766, and more) used the NoNewGlobals identifier. Why is this PR not following the same convention? |
Inspired by Coverity. CID 1441988: Useless call (USELESS_CALL).
Inspired by Coverity. CID 1441988: Useless call (USELESS_CALL).
My mistake: When fixing PR title and looking for similar past PRs, I failed to find those NoNewGlobals commits. I should have paid more attention to insufficient number of matches in my search. Sorry. Should be fixed now. Thank you for spotting this and trying to keep PR metadata up-to-date throughout changes. |
Inspired by Coverity. CID 1441988: Useless call (USELESS_CALL).
Inspired by Coverity. CID 1441988: Useless call (USELESS_CALL).