Compiler warnings for unreachable code resolved