16-02-2018, 12:34 PM
Hello,
I am facing an issue relating to rule 8.3. I am fixing MISRA violations in the project. The following code line is where i have issue:
in one of the files in the project i have the following code line:
dies->DrvPosn_D_SvRc_Rq = get_DrvPosn_D_SvRc_Rq();
get_DrvPosn_D_SvRc_Rq() is defined in other file as below:
tm_uint8 get_DrvPosn_D_SvRc_Rq(void)
{
return cio_DrvPosn_D_SvRc_Rq;
}
When i am performing the MISRA check , i get a error at 'dies->DrvPosn_D_SvRc_Rq = get_DrvPosn_D_SvRc_Rq();' line saying that Symbol 'get_DrvPosn_D_SvRc_Rq(void)' redeclared .
All the variables have same datatype tm_uint8;
Can you point out where the issue lies?
Thank you!
Ankit
I am facing an issue relating to rule 8.3. I am fixing MISRA violations in the project. The following code line is where i have issue:
in one of the files in the project i have the following code line:
dies->DrvPosn_D_SvRc_Rq = get_DrvPosn_D_SvRc_Rq();
get_DrvPosn_D_SvRc_Rq() is defined in other file as below:
tm_uint8 get_DrvPosn_D_SvRc_Rq(void)
{
return cio_DrvPosn_D_SvRc_Rq;
}
When i am performing the MISRA check , i get a error at 'dies->DrvPosn_D_SvRc_Rq = get_DrvPosn_D_SvRc_Rq();' line saying that Symbol 'get_DrvPosn_D_SvRc_Rq(void)' redeclared .
All the variables have same datatype tm_uint8;
Can you point out where the issue lies?
Thank you!
Ankit
<t></t>