From e64aff22f6235c9c07087199fae79e8c36cc7e59 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Thu, 5 Dec 2024 11:39:08 +0100 Subject: [PATCH] Revert "turn all warnings into errors but ignore type punning for franka_hardware" This reverts commit b1b51587bcb517f0edefc96e03c4cb362d10d671. --- franka_example_controllers/CMakeLists.txt | 2 +- franka_gripper/CMakeLists.txt | 2 +- franka_hardware/CMakeLists.txt | 2 +- franka_hardware/test/CMakeLists.txt | 3 --- franka_robot_state_broadcaster/CMakeLists.txt | 2 +- franka_semantic_components/CMakeLists.txt | 2 +- integration_launch_testing/CMakeLists.txt | 2 +- 7 files changed, 6 insertions(+), 9 deletions(-) diff --git a/franka_example_controllers/CMakeLists.txt b/franka_example_controllers/CMakeLists.txt index b319e9f2..3ffafb62 100644 --- a/franka_example_controllers/CMakeLists.txt +++ b/franka_example_controllers/CMakeLists.txt @@ -8,7 +8,7 @@ if(NOT CMAKE_CXX_STANDARD) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-Werror -Wall -Wextra -Wpedantic) + add_compile_options(-Wall -Wextra -Wpedantic) endif() option(CHECK_TIDY "Adds clang-tidy tests" OFF) diff --git a/franka_gripper/CMakeLists.txt b/franka_gripper/CMakeLists.txt index aab5ffde..b386361c 100644 --- a/franka_gripper/CMakeLists.txt +++ b/franka_gripper/CMakeLists.txt @@ -6,7 +6,7 @@ if(NOT CMAKE_CXX_STANDARD) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-Werror -Wall -Wextra -Wpedantic) + add_compile_options(-Wall -Wextra -Wpedantic) endif() find_package(ament_cmake REQUIRED) diff --git a/franka_hardware/CMakeLists.txt b/franka_hardware/CMakeLists.txt index c4277e93..c8e8f234 100644 --- a/franka_hardware/CMakeLists.txt +++ b/franka_hardware/CMakeLists.txt @@ -7,7 +7,7 @@ if(NOT CMAKE_CXX_STANDARD) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-Werror -Wall -Wextra -Wpedantic) + add_compile_options(-Wall -Wextra -Wpedantic) endif() option(CHECK_TIDY "Adds clang-tidy tests" OFF) diff --git a/franka_hardware/test/CMakeLists.txt b/franka_hardware/test/CMakeLists.txt index 994b0ea6..7a21fbe4 100644 --- a/franka_hardware/test/CMakeLists.txt +++ b/franka_hardware/test/CMakeLists.txt @@ -7,6 +7,3 @@ target_link_libraries(${PROJECT_NAME}_test ${PROJECT_NAME}) if(${hardware_interface_VERSION} VERSION_GREATER_EQUAL "4.20") target_compile_definitions(${PROJECT_NAME}_test PRIVATE HW_HAS_GET_BY_REF) endif() - -# ignore type punning via 'reinterpret_cast(&[...])' -target_compile_options(${PROJECT_NAME}_test PRIVATE -Wno-error=strict-aliasing) diff --git a/franka_robot_state_broadcaster/CMakeLists.txt b/franka_robot_state_broadcaster/CMakeLists.txt index f630cfbb..7f28efc8 100644 --- a/franka_robot_state_broadcaster/CMakeLists.txt +++ b/franka_robot_state_broadcaster/CMakeLists.txt @@ -7,7 +7,7 @@ if(NOT CMAKE_CXX_STANDARD) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-Werror -Wall -Wextra -Wpedantic) + add_compile_options(-Wall -Wextra -Wpedantic) endif() option(CHECK_TIDY "Adds clang-tidy tests" OFF) diff --git a/franka_semantic_components/CMakeLists.txt b/franka_semantic_components/CMakeLists.txt index c56f2b00..3c72bc85 100644 --- a/franka_semantic_components/CMakeLists.txt +++ b/franka_semantic_components/CMakeLists.txt @@ -7,7 +7,7 @@ if(NOT CMAKE_CXX_STANDARD) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-Werror -Wall -Wextra -Wpedantic) + add_compile_options(-Wall -Wextra -Wpedantic) endif() option(CHECK_TIDY "Adds clang-tidy tests" OFF) diff --git a/integration_launch_testing/CMakeLists.txt b/integration_launch_testing/CMakeLists.txt index 927e8354..49c5771d 100644 --- a/integration_launch_testing/CMakeLists.txt +++ b/integration_launch_testing/CMakeLists.txt @@ -8,7 +8,7 @@ if(NOT CMAKE_CXX_STANDARD) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") - add_compile_options(-Werror -Wall -Wextra -Wpedantic) + add_compile_options(-Wall -Wextra -Wpedantic) endif() # find dependencies