...
| Code Block | ||
|---|---|---|
| ||
char const *error_msg = "Error occurred";
/* ... */
printf("%s:%d", 15, error_msg);
|
GCC Compiler Version 3.4.4 will warn about inconsistent types for the printf() family of functions when compiled with -Wall (see MSC00-A. Compile cleanly at high warning levels).
Compliant Solution (Type Interpretation Error)
...