Skip to content

Commit

Permalink
(wire_core) Add -Wall and -Wextra as errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Sep 27, 2022
1 parent 3d36665 commit fcdd778
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions wire_core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.0.2)
project(wire_core)

add_compile_options(-Wall -Werror=all)
add_compile_options(-Wextra -Werror=extra)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
Expand Down Expand Up @@ -40,10 +43,6 @@ include_directories(
)

## Build
add_compile_options(-Wreturn-type) # Return type checking
add_compile_options(-Wreorder)


add_library(wire
src/WorldModelROS.cpp
src/models/FixedState.cpp
Expand Down Expand Up @@ -79,7 +78,6 @@ add_library(wire
include/wire/logic/AssignmentMatrix.h
include/wire/logic/Hypothesis.h
include/wire/logic/HypothesesTree.h

)

target_link_libraries(wire ${catkin_LIBRARIES} ${TinyXML2_LIBRARIES})
Expand Down

0 comments on commit fcdd778

Please sign in to comment.