...
Wiki Markup |
---|
C99 eliminated implicit function declarations from the C language \[[ISO/IEC 9899:1999|AA. C References#ISO/IEC 9899-1999]\]. However, many compilers still allow compilation of programs containing implicitly declared functions, although they may issue a warning message. These warnings should be resolved (see [MSC00-C. Compile cleanly at high warning levels]). |
To correct this example, the appropriate function prototype for func()
must be specified in the file in which it is invoked.
Code Block | ||
---|---|---|
| ||
/* file_b.c source file */
int func(int, int, int);
func(1, 2);
|
Compliant Solution (Function Prototypes)
...