Fix no-return-in-nonvoid-function error