'identifier' : function must return a value
The function was declared as returning a value, but the function definition does not contain a return statement.
Possible cause
Possible solutions
AX
register may need a return statement. Copy the value in AX
to a temporary variable and return that variable from the function.Example
The following sample generates C2561:
int test_1(int x) { if (x) { // test_2(); return; // C2561 } else return; // C2561 } void main(){}