diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3306fd0063..eba0b54073 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,7 +32,7 @@ jobs: ROS_DISTRO: jazzy env: CXXFLAGS: >- - -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls + -Wall -Wextra -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls -Wno-unknown-warning-option CLANG_TIDY_ARGS: --fix --fix-errors --format-style=file DOCKER_IMAGE: moveit/moveit2:${{ matrix.env.IMAGE }} UPSTREAM_WORKSPACE: > diff --git a/moveit_ros/moveit_servo/demos/cpp_interface/demo_joint_jog.cpp b/moveit_ros/moveit_servo/demos/cpp_interface/demo_joint_jog.cpp index 0d1315f6dc..43a0e94fa2 100644 --- a/moveit_ros/moveit_servo/demos/cpp_interface/demo_joint_jog.cpp +++ b/moveit_ros/moveit_servo/demos/cpp_interface/demo_joint_jog.cpp @@ -91,7 +91,7 @@ int main(int argc, char* argv[]) std::chrono::seconds timeout_duration(3); std::chrono::seconds time_elapsed(0); - auto start_time = std::chrono::steady_clock::now(); + const auto start_time = std::chrono::steady_clock::now(); // create command queue to build trajectory message and add current robot state std::deque joint_cmd_rolling_window; @@ -104,7 +104,7 @@ int main(int argc, char* argv[]) KinematicState joint_state = servo.getNextJointState(robot_state, joint_jog); const StatusCode status = servo.getStatus(); - auto current_time = std::chrono::steady_clock::now(); + const auto current_time = std::chrono::steady_clock::now(); time_elapsed = std::chrono::duration_cast(current_time - start_time); if (time_elapsed > timeout_duration) { diff --git a/moveit_ros/moveit_servo/demos/cpp_interface/demo_twist.cpp b/moveit_ros/moveit_servo/demos/cpp_interface/demo_twist.cpp index eb816754eb..8c92fa4cfc 100644 --- a/moveit_ros/moveit_servo/demos/cpp_interface/demo_twist.cpp +++ b/moveit_ros/moveit_servo/demos/cpp_interface/demo_twist.cpp @@ -94,7 +94,7 @@ int main(int argc, char* argv[]) std::chrono::seconds timeout_duration(4); std::chrono::seconds time_elapsed(0); - auto start_time = std::chrono::steady_clock::now(); + const auto start_time = std::chrono::steady_clock::now(); // create command queue to build trajectory message and add current robot state std::deque joint_cmd_rolling_window; @@ -107,7 +107,7 @@ int main(int argc, char* argv[]) KinematicState joint_state = servo.getNextJointState(robot_state, target_twist); const StatusCode status = servo.getStatus(); - auto current_time = std::chrono::steady_clock::now(); + const auto current_time = std::chrono::steady_clock::now(); time_elapsed = std::chrono::duration_cast(current_time - start_time); if (time_elapsed > timeout_duration) {