Skip to content

Commit fcdd778

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

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

wire_core/CMakeLists.txt

Lines changed: 3 additions & 5 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
@@ -79,7 +78,6 @@ add_library(wire
7978
include/wire/logic/AssignmentMatrix.h
8079
include/wire/logic/Hypothesis.h
8180
include/wire/logic/HypothesesTree.h
82-
8381
)
8482

8583
target_link_libraries(wire ${catkin_LIBRARIES} ${TinyXML2_LIBRARIES})

0 commit comments

Comments
 (0)