Fix for Clang++ compiler warning: control may reach end of non-void function