Fix MSVC warnings about falling off the end of a non-void function