27-03-2015, 01:32 PM
A function is considered to have persistent side effects if there is a path through the function that might cause a persistent side effect. This determination takes no consideration of the possible values for parameters or other non-local objects.
Therefore, "fn(-3)" is considered to have persistent side effects" even though in this case the value of "y" is known not to change.
Therefore, "fn(-3)" is considered to have persistent side effects" even though in this case the value of "y" is known not to change.
Posted by and on behalf of the MISRA C Working Group