Compiler Error C2561
'identifier' : function must return a value
The specified function was declared as returning a value, but the function definition did not contain a return statement.
This error can be caused by an incorrect function prototype.
Tips
- If the function does not return a value, the function should be declared with a void return type.
- Make sure that all possible branches of the function return a value of the type declared in the prototype.
- C++ functions containing inline assembly routines that store the return value in the AX register may need a return statement added to the function. Copy the value in AX to a temporary variable and return that variable from the function.