From 91e1618ccd4022be57af05ed7d3c3b7951baf058 Mon Sep 17 00:00:00 2001 From: Peguen <73380451+Peguen@users.noreply.github.com> Date: Wed, 12 Feb 2025 15:32:46 +0100 Subject: [PATCH] [build] Remove some build warnings (#2018) --- ecal/core/src/pubsub/ecal_publisher_impl.cpp | 2 +- ecal/service/test/src/ecal_tcp_service_test.cpp | 6 +++--- .../registration_test_public/src/registration_gettopics.cpp | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ecal/core/src/pubsub/ecal_publisher_impl.cpp b/ecal/core/src/pubsub/ecal_publisher_impl.cpp index 6a5b8c2a1f..34d8c1e333 100644 --- a/ecal/core/src/pubsub/ecal_publisher_impl.cpp +++ b/ecal/core/src/pubsub/ecal_publisher_impl.cpp @@ -346,7 +346,7 @@ namespace eCAL return(true); } - bool CPublisherImpl::SetAttribute(const std::string& /* attr_name_ */_, const std::string& /* attr_value_ */) + bool CPublisherImpl::SetAttribute(const std::string& /* attr_name_ */, const std::string& /* attr_value_ */) { #ifndef NDEBUG Logging::Log(Logging::log_level_debug2, m_attributes.topic_name + "::CPublisherImpl::SetAttribute"); diff --git a/ecal/service/test/src/ecal_tcp_service_test.cpp b/ecal/service/test/src/ecal_tcp_service_test.cpp index 6e3ca32507..f9d6315d73 100644 --- a/ecal/service/test/src/ecal_tcp_service_test.cpp +++ b/ecal/service/test/src/ecal_tcp_service_test.cpp @@ -1682,7 +1682,7 @@ TEST(ecal_service, Callback_ApiCallsFromCallbacks) // NOLINT const ecal_service::ClientSession::EventCallbackT client_event_callback = [&num_client_event_callback_called, &client] - (ecal_service::ClientEventType event, const std::string& /*message*/) -> void + (ecal_service::ClientEventType /* event */, const std::string& /*message*/) -> void { if (client) { @@ -1772,13 +1772,13 @@ TEST(ecal_service, BackupHost) }; const ecal_service::Server::EventCallbackT server_event_callback - = [&num_server_event_callback_called](ecal_service::ServerEventType event, const std::string& /*message*/) -> void + = [&num_server_event_callback_called](ecal_service::ServerEventType /* event */, const std::string& /*message*/) -> void { num_server_event_callback_called++; }; const ecal_service::ClientSession::EventCallbackT client_event_callback - = [&num_client_event_callback_called](ecal_service::ClientEventType event, const std::string& /*message*/) -> void + = [&num_client_event_callback_called](ecal_service::ClientEventType /* event */, const std::string& /*message*/) -> void { num_client_event_callback_called++; }; diff --git a/ecal/tests/cpp/registration_test_public/src/registration_gettopics.cpp b/ecal/tests/cpp/registration_test_public/src/registration_gettopics.cpp index 51da90e9a4..225d8374ad 100644 --- a/ecal/tests/cpp/registration_test_public/src/registration_gettopics.cpp +++ b/ecal/tests/cpp/registration_test_public/src/registration_gettopics.cpp @@ -179,7 +179,6 @@ TEST(core_cpp_registration_public, GetTopicsParallel) std::set tmp_publisher_ids; do { - std::set tmp_publisher_ids; eCAL::Registration::GetPublisherIDs(tmp_publisher_ids); number_publishers_seen = tmp_publisher_ids.size();