![](https://csdnimg.cn/release/download_crawler_static/10391343/bg5.jpg)
《单片机技术初步实践》帮助文档
5
[ERROR]
Description
A function prototype declaration had formal parameter names, but no types were
provided for the parameters.
函数原型定义时有形式参数的名称,但是没有给出形式参数的类型
Example
unsigned char f(i); // error
Tips
Declare the types for the parameters.
定义形式参数的类型,如上例:unsigned char f(char i);
13. C1407: Illegal function-redefinition 函数重复定义出错
[ERROR]
Description
The function has already a function body, it has already been defined.
新定义的函数已经有了函数体,而且已经被定义过
Example
void main(void) {}
void main(void) {}
Tips
Define a function only once.
一个函数只定义一次
14. C1412: Not a function call, address of a function 不是调用函数而是调用函数地址
[DISABLE, INFORMATION, WARNING, ERROR]
Description
A function call was probably desired, but the expression denotes an address of the
function.
调用函数时,调用了函数的地址
Example
void f(unsigned char i);
void main() {
f; // warning
}
Tips
Write parenthesis (, ) with the arguments after the name of the function to be
called.
在函数名后写括号。如上例 f();
15. C1800: Implicit parameter-declaration (missing prototype) for ‘<FuncName>’错
误的函数调用方式
[ERROR]
Description
A function was called without its prototype being declared before.