Message The last statement in non-void function "<name>" is not a return statement. Description This message indicates that a function with an implicit return type of it does not end with a return statement. If function execution reaches the end of the function, the implied return statement that executes will return an undefined value. This might not have been what you intended. User Action Consider declaring the function to be a void function. If it is supposed to return a value, add a return statement with the value the function is to return.