Skip to content

Fix #9877 FP unreadVariable (incomplete code; missing macro definition)#4278

Merged
danmar merged 3 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix9877
Jul 17, 2022
Merged

Fix #9877 FP unreadVariable (incomplete code; missing macro definition)#4278
danmar merged 3 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix9877

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

@chrchr-github
Copy link
Copy Markdown
Collaborator Author

This re-introduces the FP from ticket #4304, so that's not good.
But once the macro has been removed, we cannot even warn about it (which might also be a solution for #9877).

Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

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

It sounds good to me to remove removeMacroInVarDecl so such macros must be configured manually instead. :+1;

Comment thread test/testunusedvar.cpp Outdated
@danmar danmar merged commit b08aabe into cppcheck-opensource:main Jul 17, 2022
@chrchr-github chrchr-github deleted the chr_Fix9877 branch October 22, 2022 09:47
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.

2 participants