-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix #5115 (False positive: redundantAssignment when using a union) #6484
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
Conversation
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.
might be a working approach.
will we still warn about some redundant assignments properly? maybe you could add a test case where the read is removed. I would prioritize that we don't write false positives. but if we don't have false negatives that is nice. |
Does this also fix https://trac.cppcheck.net/ticket/10093? |
It's suppose to I will add the test for it as well when I finished fixing false negatives |
This change seem to have introduced a regression.
|
A small fix will solve it. I will push it |
d33d29c fix |
No description provided.