From c20c8b16193ecbcafef62a4aba9a9011815862f2 Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Mon, 22 Jul 2024 12:40:30 +0200 Subject: [PATCH] Refs #21387: Fix warning without security and log_info Signed-off-by: JesusPoderoso --- src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp b/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp index 204daa96896..5c1c666ed3b 100644 --- a/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp +++ b/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp @@ -856,6 +856,7 @@ bool EDP::pairingWriter( BaseWriter* writer = BaseWriter::downcast(W); const GUID_t& writer_guid = writer->getGuid(); + static_cast(writer_guid); // Void cast to force usage if LOG_INFO and SECURITY are disabled EPROSIMA_LOG_INFO(RTPS_EDP, writer_guid << " in topic: \"" << wdata.topicName() << "\""); std::lock_guard pguard(*mp_PDP->getMutex());