Skip to content

fixed some compiler warnings#3502

Merged
danmar merged 1 commit intocppcheck-opensource:mainfrom
firewave:warn
Oct 13, 2021
Merged

fixed some compiler warnings#3502
danmar merged 1 commit intocppcheck-opensource:mainfrom
firewave:warn

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@danmar danmar merged commit 99db1f3 into cppcheck-opensource:main Oct 13, 2021
@firewave firewave deleted the warn branch October 13, 2021 10:26
@firewave
Copy link
Copy Markdown
Collaborator Author

I wonder if these are things Cppcheck should have detected as well.

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Oct 13, 2021

Yes possibly. In general.. if a new check is needed and the compiler already detect the issue well then I think the ROI to implement it in Cppcheck also is not great.
We have a check for unused variables so that should have warned about the token variable. I have the feeling that our check for unused variables will warn for many cases that compilers do not so it makes sense to keep this check in Cppcheck.

@firewave
Copy link
Copy Markdown
Collaborator Author

Yes possibly. In general.. if a new check is needed and the compiler already detect the issue well then I think the ROI to implement it in Cppcheck also is not great. We have a check for unused variables so that should have warned about the token variable. I have the feeling that our check for unused variables will warn for many cases that compilers do not so it makes sense to keep this check in Cppcheck.

I was thinking about flagging tickets about checks/cases which are not detected by other tools so you could filter for them.

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Oct 13, 2021

I was thinking about flagging tickets about checks/cases which are not detected by other tools so you could filter for them.

that sounds good to me. those would be extra valuable.

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