C1435: Return expected

[ERROR]

Description

The specified function was declared as returning a value, but the function definition did not contain a return statement.

Example
  int foo(void) {}

  
Tips

Write a return statement in this function or declare the function with a void return type.