05-09-2022, 02:13 AM
As written above, I'd expect it to be flagged as non-compliant since you don't modify (x) within the function, thus making it a candidate to be "const int x"
Welcome to the new MISRA discussion forum, if you were previously a member of our forums you may need to reset your password.
A7-1-1 and function parameters
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
A7-1-1 and function parameters - by mstaron - 31-08-2022, 01:03 PM
RE: A7-1-1 and function parameters - by kent.dorfman766 - 05-09-2022, 02:13 AM
RE: A7-1-1 and function parameters - by misra cpp - 07-10-2022, 11:26 AM
|