[DISABLE, INFORMATION, WARNING , ERROR]
A function with a return type has no return statement. In C it's a warning, in C++ an error.
int f() {} // warning
Insert a return statement, if you want to return something, otherwise declare the function as returning void type.