SRC\file.c:284: error: [#1547-D] call is made to a non-prototyped function Reason: There is a function mentioned in the code, which doesn't have a prototype either because of:
Example 1: /* Function prototype declarations */ void func1(void); /* Prototype for func1 */ /* Prototype for func2 is missing */ /* Implementation */ void func1(void) { /* Func1 implementation */ } void func2(void) { /* Func2 implementation */ } Example 2: /* Function prototype declarations */ void func1(void); /* Prototype for func1 */ void func2(void); /* Prototype for func2*/ /* Implementation */ void func1(void) { /* Func1 implementation */ } void fung2(void) /* func2 has wrong name */ { /* Func2 implementation */ } Example 3: /* Function prototype declarations */ void func1(void); /* Prototype for func1 */ void func3(void); /* Prototype for func3 (former func2 )*/ /* Implementation */ void main(void) { fun2(); /* Call to former name of func3 */ } void func1(void) { /* Func1 implementation */ } void func2(void) /* func3 (former func2) */ { /* Func2 implementation */ }
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
AuthorWarnings are important! Archives
May 2017
Categories |