Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Do not rely on implicit int typing. C99, Section 6.7.2, "Type specifiers" states:

At least one type specifier shall be given in the declaration specifiers in each declaration, and in the specifier-qualifier list in each struct declaration and type name.

...

For more information on function declarations, see guideline DCL07-C. Include the appropriate type information in function declarators.

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

DCL31-C

low

unlikely

low

P3

L3

Automated Detection

Tool

Version

Checker

Description

Section

GCC

Include Page
c:GCC_V

...

c:GCC_V

 

Section

can detect violations of this rule when the -Wimplicit and -Wreturn-type flags are used

...

Section

Compass/ROSE

...

 

 

 

Section

Klocwork

Include Page
c:Klocwork_V
c:Klocwork_V
Section

IF_MISS_DECL

...

RETVOID.IMPLICIT

...

 

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

...

Wiki Markup
\[[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\] Section 6.7.2, "Type specifiers", Section  6.5.2.2, "Function calls"
\[[ISO/IEC PDTR 24772|AA. Bibliography#ISO/IEC PDTR 24772]\] "OTR Subprogram Signature Mismatch"
\[[Jones 082008|AA. Bibliography#Jones 08]\]
\[[MISRA 042004|AA. Bibliography#MISRA 04]\]

...