Hi,
We are getting an unwarranted MISRA 12.2 warning on the attached file.
The warning occurs when you try to call a function using the return value from another function
e.g. func2(func1());
void test(void);
int intReturnFunc(void);
int intPassFunc(int i);
void test(void)
{
int i;
do
{ /* Just to make sure i is used */
i = intPassFunc(intReturnFunc()); /* MISRA 12.2 on this line */
} while ( 0 == i);
}
int intReturnFunc(void)
{
return 1;
}
int intPassFunc(int i)
{
return i;
}
Thanks,
Richard