fixing the gcc build (switch warning)