Make case fallthrough explicit (#153)

* Make case fallthrough explicit
This commit is contained in:
Dan Rose 2020-04-13 21:05:42 -05:00 committed by GitHub
parent 5781044edd
commit a9e8784c04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 1 deletions

View file

@ -22,7 +22,7 @@ if(NOT CMAKE_CXX_STANDARD)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
add_compile_options(-Wall -Wextra -Wpedantic -Wimplicit-fallthrough)
endif()
find_package(ament_cmake_ros REQUIRED)