RAD Studio
ContentsIndex
PreviousUpNext
E2292: Function should return a value (C++)

Your source file declared the current function to return some type other than int or void, but the compiler encountered a return with no value. This usually indicates some sort of error. 

Functions declared as returning int are exempt because older versions of C did not support void function return types.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!