Tool/software: TI C/C++ Compiler
This line of code:
const long value = (long)va_arg(list, long);
Produce the following output:
This solved it:
const int32_t value11 = va_arg(list, int32_t);
How strange changing the name solves the problem.
This is the complete part of the code:
case(MSG_UINT32):
{
const uint32_t value = va_arg(list, uint32_t);
Status_MSG_detail(0 , __LINE__, MSG_UINT32, Modid, mesid, msg0, value);
}
break;
case(MSG_INT32):
{
const int32_t value = va_arg(list, int32_t); // this value is changed to value11
Status_MSG_detail(0 , __LINE__, MSG_INT32, Modid, mesid, msg0, value);
}
break;
So somehow the definition of the previous value definition is reused. There is no global value variable.