Make missing case statements an error. (#245)

master
Holger Rapp 2017-05-02 16:56:10 +02:00 committed by GitHub
parent 2f3a9f4dcc
commit 1cdcd12a8b
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ macro(google_initialize_cartographer_project)
google_add_flag(GOOG_CXX_FLAGS "-Werror=missing-braces")
google_add_flag(GOOG_CXX_FLAGS "-Werror=reorder")
google_add_flag(GOOG_CXX_FLAGS "-Werror=return-type")
google_add_flag(GOOG_CXX_FLAGS "-Werror=switch")
google_add_flag(GOOG_CXX_FLAGS "-Werror=uninitialized")
if(NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")