cppcheck signals the warning
Parameter 'callbackData' can be declared as pointer to const
when the implementation of the fuction allows the const-qualification of the parameter.
This is right.
Sometimes the signature of the function is imposed by something else. As an example it's the callback of something and the parameter callbackData is not const in the required signature.
Is there a way for me to mark in the soruce code that the cppcheck warning should be skipped for this parameter?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
cppcheck signals the warning
Parameter 'callbackData' can be declared as pointer to const
when the implementation of the fuction allows the const-qualification of the parameter.
This is right.
Sometimes the signature of the function is imposed by something else. As an example it's the callback of something and the parameter callbackData is not const in the required signature.
Is there a way for me to mark in the soruce code that the cppcheck warning should be skipped for this parameter?