...
Code Block |
---|
|
/* file_b.c source file */
func(1, 2);
|
Wiki Markup |
C99 eliminated implicit function declarations from the C language \ [[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\]. However, many compilers still allow the compilation of programs containing implicitly declared functions, although they may issue a warning message. These warnings should be resolved. (See recommendation [MSC00-C. Compile cleanly at high warning levels].)
Compliant Solution (Function Prototypes)
...
Tool | Version | Checker | Description |
---|
| | | Section |
---|
Fully Implemented |
|
| | | Section |
---|
Can detect violation of this recommendation when the -Wstrict-prototypes flag is used. |
|
| | | |
...
MISRA Rule 8.2
Bibliography
Wiki Markup |
\[[Spinellis 2006|AA. Bibliography#Spinellis 06]\] Section 2.6.1, "Incorrect Routine or Arguments"
...
02. Declarations and Initialization (DCL)