-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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 some pvs reported issues #6837
Fix some pvs reported issues #6837
Conversation
@@ -1222,8 +1222,8 @@ void Context::setCurrentQueryId(const String & query_id) | |||
} words; | |||
} random; | |||
|
|||
random.words.a = thread_local_rng(); | |||
random.words.b = thread_local_rng(); | |||
random.words.a = thread_local_rng(); //-V656 |
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.
Any description?
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.
Suppresstion. It's required by PVS-Studio to be in exactly this format.
The only way is to write an additional describing comment in a line above, but it's too cumbersome to do it for every suppression.
Fix some pvs reported issues (cherry picked from commit c90dfc1)
One bug found by PVS Studio + 2 cosmetics
Category (leave one):
Detailed description (optional):
See commit messages