sprintf and tons of warnings with types - how to remove
Every time I use sprintf, I get this warning:
warning C4057: 'function' : 'char *' differs in indirection to slightly different base types from 'unsigned char '
I have the warning level set to the maximum, 4. Here's an example that causes this to get triggered:
I can't set the string upon the variable declaration because the string actually depends on many parameters. The output I'm getting is what I'm expecting though at least (or I won't be able to see any of the numbers, menus, etc. I have). If I recall about 6 months ago, I wasn't getting this warning at all with this same setup. Did some update to VC++ cause this to start happening?
// at the top
unsigned char TextString; // a basic string with plenty of room
... // in a function
sprintf(TextString, "This warning clutters things up, making error locations hard to find.");