Return with no value

Problem: I received the following warning:

warning: 'return' with no value, in function returning non-void

Solution: Sometimes, a function is supposed to return a value, but the return statement does not have a value on it. Investigate the function to determine if a value should be returned or if the function should not have a return value.