Remove unreachable code casing warnings on mac