ARM Technical Support Knowledge Articles

WARNING 173 (MISSING RETURN-EXPRESSION)

Applies to: C51 C Compiler

Answer


Information in this article applies to:


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

Article last edited on: 2005-07-15 12:17:45

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