...
Compiling at high warning levels in compliance with recommendation MSC00-C. Compile cleanly at high warning levels causes warnings to be issued when
converting from {{Wiki Markup unsigned
char
\[
\]
}} to {{const
char
*
}} when {{char
}} is signedunmigrated-wiki-markup- converting from {{
signed
char
\[
\]
}} to {{const
char
*
}} when {{char
}} is defined to be unsigned
Casts are required to eliminate these warnings, but excessive casts can make code difficult to read and hide legitimate warning messages.unmigrated-wiki-markup
If this C code were compiled using a C+\+ compiler, conversions from {{unsigned
char
\[
\]
}} to {{const
char
*
}} and from {{signed
char
\[
\]
}} to {{const
char
*
}} would be flagged as errors requiring casts.
Compliant Solution
The compliant solution uses plain char
for character data.
...