Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Code Block
bgColor#FFCCCC
langc
/* file_b.c source file */
func(1, 2);

Wiki MarkupC99 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

LDRA tool suite

Include Page
c:LDRA_Vc:
LDRA_V
Section

21 S
135 S
170 S

Section

Fully Implemented

Section

GCC

Include Page
c:GCC_Vc:
GCC_V

 

Section

Can detect violation of this recommendation when the -Wstrict-prototypes flag is used.

Section

ECLAIR

Include Page
c:ECLAIR_Vc:
ECLAIR_V
Section

decltype

Section

Fully Implemented

...

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)