Looking at this post:
I tried to add #pragma iso_9899_1999 to the top of my code.
However, during compile, the error below occurred:
Type error in argument 2 to 'hrCheck"; found "pointer to const char" expected "pointer to char"
int hrCheck( HRESULT hresult, char *desc )
...
hrCheck(hr, __FUNCTION__ " my post-string error message")
This error occurred in other error strings where I appended __FUNCTION__ to string constants, or embedded it inside other string constants.
void logger( char * );
...
logger( __FUNCTION__ "()- error occurred because ..." ); // fails