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

Fixed #12260 (false positive: unusedVariable with side effects in member initialization) #5762

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

olabetskyi
Copy link
Collaborator

@olabetskyi olabetskyi commented Dec 14, 2023

revert old changes

@olabetskyi olabetskyi marked this pull request as ready for review December 14, 2023 13:32
@olabetskyi olabetskyi changed the title #12260: revert some old changes Fixed #12260 (false positive: unusedVariable with side effects in member initialization) Dec 14, 2023
@danmar danmar merged commit 6112795 into danmar:main Dec 14, 2023
68 checks passed
"int main() {\n"
" A a;\n"
"}");
TODO_ASSERT_EQUALS("error", "", errout.str());
Copy link
Collaborator

Choose a reason for hiding this comment

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

The assert looks wrong. Looks like a copy and paste error from the one above - and that also looks fishy.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Let me check it. Thank you

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

The one above is actually ok as a TODO, since that constructor has no side effects (class F).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay

Copy link
Collaborator

Choose a reason for hiding this comment

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

The one above is actually ok as a TODO, since that constructor has no side effects (class F).

"fishy" in the sense that the expected message is just bogus. I did not look at the contents of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants