Get rid of Wreturn-type warning

Code was correct. Return happened in default case for switch.
Added this to get rid of compiler warning.