Skip to content

Fix #11577 FN unusedStructMember when casting address (regression, reverts #10684)#4816

Merged
firewave merged 1 commit intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix11577
Apr 4, 2023
Merged

Fix #11577 FN unusedStructMember when casting address (regression, reverts #10684)#4816
firewave merged 1 commit intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix11577

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

I think showing a warning for the code from #10684 is reasonable.

@firewave
Copy link
Copy Markdown
Collaborator

firewave commented Feb 24, 2023

I am not sure how "reasonable" it would be to show the warning for #10684 again. The code looks like an extremely simple serialization.

So depending on how many fields are in the struct you would need to annotate each with a suppression which would seem very FP-ish.

As it was not reported from an external source I think it might be fine to revert the change and re-visit it when a report emerges.

We should note the revert in the ticket though.

@chrchr-github chrchr-github changed the title Fix #11577 FN unusedStructMember when casting address (regression) Fix #11577 FN unusedStructMember when casting address (regression, reverts #10684) Mar 13, 2023
@firewave firewave merged commit 0f47948 into cppcheck-opensource:main Apr 4, 2023
@chrchr-github chrchr-github deleted the chr_Fix11577 branch May 22, 2023 18:59
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