ARM Technical Support Knowledge Articles

WARNING 206 (MISSING FUNCTION PROTOTYPE)

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

While compiling my C source file, the compiler reported the following diagnostic:

WARNING 206: MISSING FUNCTION PROTOTYPE

ANSWER

The called function is unknown because no prototype declaration exists. Calls to unknown functions risk that the number of parameters may not correspond to the actual requirements. If this is the case, the function is called incorrectly.

The compiler has no way to check for missing or excessive parameters and their types. Include prototypes of the functions used in your program. Prototypes must be specified before the functions are actually called. The definition of a function automatically produces a prototype.

MORE INFORMATION

Article last edited on: 2005-07-15 12:38:08

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential