Keil Logo

C166: WARNING 140 (FUNCTION UNDEFINED, ASSUMING...)


Information in this article applies to:

  • C166 Version 3.12
  • C166 Version 4.03

QUESTION

Help. I receive the following warning when I compile my C code.

*** WARNING 140 IN LINE 14 OF .\TEST.C: 'func' undefined; assuming 'extern int func()'

How can I fix this?

ANSWER

This warning indicates that the func function is undefined. The compiler is going to assume that the function is declared as int func ().

To get rid of this warning, you must create a function prototype for the undefined function. For example:

void func (int a, int b);

void main (void)
{
func (1, 2);
}

Last Reviewed: Sunday, March 12, 2000


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.