Skip to content

Commit

Permalink
Change to CXX flags to add_compile_options, add many more warnings, a…
Browse files Browse the repository at this point in the history
…nd take away -Wno flags
  • Loading branch information
quinnmp committed Jan 12, 2024
1 parent ec3cd15 commit a20257c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,6 @@ if(WORLD_INTERFACE STREQUAL "REAL")
endif()
endif()

# Enable all warnings except a few (unused variable/parameter/result)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall \
-Wno-unused-variable \
-Wno-unused-but-set-variable \
-Wno-unused-result \
-Wno-unused-parameter") # -Wconversion")

if(WITH_TESTS)
enable_testing()
endif()
Expand Down Expand Up @@ -360,6 +353,13 @@ if (WORLD_INTERFACE STREQUAL "REAL")
target_link_libraries(LimitSwitchCalibration real_world_interface)
endif()

add_compile_options(
-Wall
-Wextra
-Wconversion
-Wpedantic
)

add_subdirectory(ar)
add_subdirectory(camera)
add_subdirectory(CAN)
Expand Down

0 comments on commit a20257c

Please sign in to comment.