Mike Banducci - 2021-10-14

I have a few functions with default arguments, and I they get flagged with misra-c2012-17.8. The following function shows the false positive behavior:

int test_func(const int x, const int y, const int z = 0)
{
    return (x * y * z);
}

z is not modified, but misra-c2012-17.8 is flagged on the function declaration.