(#199) Enable -Wswitch flag for gcc

master
rexim 2018-06-02 23:36:23 +07:00
parent ed728d3dc9
commit b3bc106cce
2 changed files with 1 additions and 2 deletions

View File

@ -100,6 +100,7 @@ if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" ST
-Wshadow \
-Wstrict-prototypes \
-Wwrite-strings \
-Wswitch \
-fno-common \
-pedantic \
-std=c11 \

View File

@ -24,7 +24,5 @@ void solid_touches_rect_sides(solid_ref_t solid,
case SOLID_PLAYER:
player_touches_rect_sides((player_t *) solid.ptr, object, sides);
break;
default: {}
}
}