From cfee2f54c020f00b8e02d28749630d1e98e7988e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Wed, 24 Nov 2021 11:55:42 +0100 Subject: [PATCH] Refs #12290. Fix warnings on Mac MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno Signed-off-by: JLBuenoLopez-eProsima --- src/cpp/rtps/transport/ChainingSenderResource.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpp/rtps/transport/ChainingSenderResource.hpp b/src/cpp/rtps/transport/ChainingSenderResource.hpp index 2683b5d9025..191857acca2 100644 --- a/src/cpp/rtps/transport/ChainingSenderResource.hpp +++ b/src/cpp/rtps/transport/ChainingSenderResource.hpp @@ -33,8 +33,10 @@ class ChainingSenderResource : public fastrtps::rtps::SenderResource , low_sender_resource_(std::move(low_sender_resource)) { // Implementation functions are bound to the right transport parameters - clean_up = [this, &transport]() + clean_up = []() { + // No cleanup is required. + // low_sender_resources_ makes its clean up on destruction. }; send_lambda_ = [this, &transport](