Skip to content

Fix #8004 unintentional semicolon in expression '.. ; +dostuff();'#4109

Merged
orbitcowboy merged 3 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix8004
May 13, 2022
Merged

Fix #8004 unintentional semicolon in expression '.. ; +dostuff();'#4109
orbitcowboy merged 3 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix8004

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread test/testother.cpp Outdated
" +g();\n"
" -g();\n"
"}\n");
ASSERT_EQUALS("[test.cpp:3]: (warning, inconclusive) Found suspicious operator '+'\n"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not your code.. but the warning message should be more clear. Would it be possible to write "result is not used" also?

@orbitcowboy orbitcowboy merged commit 52f507d into cppcheck-opensource:main May 13, 2022
@chrchr-github chrchr-github deleted the chr_Fix8004 branch June 22, 2022 14:14
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.

3 participants