MISRAC2012-Rule-17.8
In this section:
Synopsis
(Advisory) A function parameter should not be modified.
Enabled by default
No
Severity/Certainty
Low/High

Full description
A function parameter was found that is modified.
Coding standards
- MISRA C:2012 Rule-17.8
(Advisory) A function parameter should not be modified
Code examples
The following code example fails the check and will give a warning:
void example(int p) {
int a = p + 5;
p = a;
}
The following code example passes the check and will not give a warning about this issue:
void example(int *p) {
*p = 5;
}