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 12dd140
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 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

0 comments on commit 12dd140

Please sign in to comment.