Skip to content

Commit 37c1b36

Browse files
author
Yara Shahin
committed
fix build options
1 parent 5395161 commit 37c1b36

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

vda5050_safety_state_broadcaster/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
cmake_minimum_required(VERSION 3.8)
22
project(vda5050_safety_state_broadcaster)
33

4-
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
5-
add_compile_options(-Wall -Wextra -Werror=conversion -Werror=unused-but-set-variable -Werror=return-type -Werror=shadow)
6-
endif()
4+
find_package(ros2_control_cmake REQUIRED)
5+
set_compiler_options()
6+
export_windows_symbols()
77

88
set(THIS_PACKAGE_INCLUDE_DEPENDS
99
builtin_interfaces

vda5050_safety_state_broadcaster/test/test_vda5050_safety_state_broadcaster.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ class VDA5050SafetyStateBroadcasterTest : public ::testing::Test
9494
}
9595

9696
protected:
97-
std::array<double, 7> itfs_values_ = {
97+
std::array<double, 7> itfs_values_ = {{
9898
0.0, // 0 fieldViolation1
9999
1.0, // 1 fieldViolation2
100100
0.0, // 2 eStopManual1
101101
0.0, // 3 eStopManual2
102102
0.0, // 4 eStopRemote1
103103
1.0, // 5 eStopRemote2
104104
1.0, // 6 eStopAutoack
105-
};
105+
}};
106106
hardware_interface::StateInterface fieldViolation1_itf_{
107107
"PLC_sensor1", "fieldViolation", &itfs_values_[0]};
108108
hardware_interface::StateInterface fieldViolation2_itf_{

0 commit comments

Comments
 (0)