Yes; I know that it is still unreferenced when code is generated, but the fact that I have gone to the trouble of marking it means that I do NOT want to be told about it any more. This often comes about when handling Windows Messages where one or both of LPARAM/WPARAM is unused and in function overrides. I still want to be told about unreferenced values that I have not marked, so globally disabling the check is the not the answer.
UNREFERENCED_PARAMETER() is a Windows environment thing, but every platform has an equivalent.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes; I know that it is still unreferenced when code is generated, but the fact that I have gone to the trouble of marking it means that I do NOT want to be told about it any more. This often comes about when handling Windows Messages where one or both of LPARAM/WPARAM is unused and in function overrides. I still want to be told about unreferenced values that I have not marked, so globally disabling the check is the not the answer.
UNREFERENCED_PARAMETER() is a Windows environment thing, but every platform has an equivalent.
I have added the macro in this PR: https://github.com/danmar/cppcheck/pull/3809