cpns wrote on Friday, August 26, 2011:
The problem is the
const signed char * const pcName;
member. The complete error message in uVision is missing because it does not handle multi-line messages from its own compiler! You need to look in the generated .lst file to see the fill message.
The semantics of const in C++ differ from C, but I am not sure why this generates a warning, it is a variable pointer to const data. That is not to say that the data is truly constant, but that it cannot be modified through this pointer. I think this warning can be safely disabled.
#pragma diag_suppress 368