NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2561

'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

Example

The following sample generates C2561:

int test_1(int x) {

   if (x) {
//      test_2();
      return;   // C2561
   }
else
  return;   // C2561
}

void main(){}