30-04-2018, 08:41 AM
Hi all,
PC-Lint warn me that i'm using the address of a near auto variable.
My code looks like this:
Could you help me to handle this issue?
PC-Lint warn me that i'm using the address of a near auto variable.
My code looks like this:
Code:
/* static var */
static int16_t MySignVar = 0;
StatusType tMyfunc(void)
{
uint16_t MyUnSignVar = 0U;
StatusType ReturnValue;
ReturnValue = tSomefunt(Parameter_1, &MyUnSignVar ); /* Note 934: Taking address of near auto variable... [MISRA 2012 Rule 1.3, required]... */
/* MyUnSignVar is always positive */
MySignVar += (int16_t)MyUnSignVar ;
return (ReturnValue);
}
Could you help me to handle this issue?
<t></t>