This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MISRA 12.2 warning on C Code generation tools v4.7.0B2 TMS570

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