Enable compiler warnings
Remove unreachable code