From 4c918a29b3d7d330d7e4c7e6cae046e067920aef Mon Sep 17 00:00:00 2001 From: kobayu858 <129580202+kobayu858@users.noreply.github.com> Date: Fri, 29 Nov 2024 14:23:19 +0900 Subject: [PATCH] fix(autoware_image_projection_based_fusion): fix clang-diagnostic-unused-private-field (#9505) Signed-off-by: kobayu858 --- .../autoware_image_projection_based_fusion/CMakeLists.txt | 1 - .../include/autoware/image_projection_based_fusion/debugger.hpp | 1 - .../autoware_image_projection_based_fusion/src/debugger.cpp | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/perception/autoware_image_projection_based_fusion/CMakeLists.txt b/perception/autoware_image_projection_based_fusion/CMakeLists.txt index 921a46ccebe3e..73d305d2ab2a8 100644 --- a/perception/autoware_image_projection_based_fusion/CMakeLists.txt +++ b/perception/autoware_image_projection_based_fusion/CMakeLists.txt @@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 3.14) project(autoware_image_projection_based_fusion) # add_compile_options(-Wno-unknown-pragmas) add_compile_options(-Wno-unknown-pragmas -fopenmp) -add_compile_options(-Wno-error=attributes) find_package(autoware_cmake REQUIRED) find_package(OpenCV REQUIRED) diff --git a/perception/autoware_image_projection_based_fusion/include/autoware/image_projection_based_fusion/debugger.hpp b/perception/autoware_image_projection_based_fusion/include/autoware/image_projection_based_fusion/debugger.hpp index d74347772ef10..f4229382ba38c 100644 --- a/perception/autoware_image_projection_based_fusion/include/autoware/image_projection_based_fusion/debugger.hpp +++ b/perception/autoware_image_projection_based_fusion/include/autoware/image_projection_based_fusion/debugger.hpp @@ -56,7 +56,6 @@ class Debugger void imageCallback( const sensor_msgs::msg::Image::ConstSharedPtr input_image_msg, const std::size_t image_id); - [[maybe_unused]] rclcpp::Node * node_ptr_; std::shared_ptr image_transport_; std::vector input_camera_topics_; std::vector image_subs_; diff --git a/perception/autoware_image_projection_based_fusion/src/debugger.cpp b/perception/autoware_image_projection_based_fusion/src/debugger.cpp index 90952f3f6a8f5..975a3929ce77a 100644 --- a/perception/autoware_image_projection_based_fusion/src/debugger.cpp +++ b/perception/autoware_image_projection_based_fusion/src/debugger.cpp @@ -41,7 +41,7 @@ namespace autoware::image_projection_based_fusion Debugger::Debugger( rclcpp::Node * node_ptr, const std::size_t image_num, const std::size_t image_buffer_size, std::vector input_camera_topics) -: node_ptr_(node_ptr), input_camera_topics_{input_camera_topics} +: input_camera_topics_{input_camera_topics} { image_buffers_.resize(image_num); image_buffer_size_ = image_buffer_size;