Keil Logo

C51: WARNING 173 (MISSING RETURN-EXPRESSION)


Information in this article applies to:

  • C51 Version 5.50

QUESTION

While compiling a source file, I get the following diagnostic from C51:

WARNING 173: Missing return-expression

ANSWER

A function which returns a value of any type other than int, must include a return statement. Because of compatibility with older programs, no check is done on functions which return an int value.

MORE INFORMATION

Last Reviewed: Friday, July 15, 2005


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.