Skip to content

Commit 12dd140

Browse files
committed
(wire_core) Add -Wall and -Wextra as errors
1 parent 3d36665 commit 12dd140

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

wire_core/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
cmake_minimum_required(VERSION 3.0.2)
22
project(wire_core)
33

4+
add_compile_options(-Wall -Werror=all)
5+
add_compile_options(-Wextra -Werror=extra)
6+
47
## Find catkin macros and libraries
58
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
69
## is used, also find other catkin packages
@@ -40,10 +43,6 @@ include_directories(
4043
)
4144

4245
## Build
43-
add_compile_options(-Wreturn-type) # Return type checking
44-
add_compile_options(-Wreorder)
45-
46-
4746
add_library(wire
4847
src/WorldModelROS.cpp
4948
src/models/FixedState.cpp

0 commit comments

Comments
 (0)