Skip to content

Commit

Permalink
Refs #21387: Fix warning without security and log_info
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
  • Loading branch information
JesusPoderoso committed Jul 22, 2024
1 parent 8840ab2 commit c20c8b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,7 @@ bool EDP::pairingWriter(

BaseWriter* writer = BaseWriter::downcast(W);
const GUID_t& writer_guid = writer->getGuid();
static_cast<void>(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<std::recursive_mutex> pguard(*mp_PDP->getMutex());
Expand Down

0 comments on commit c20c8b1

Please sign in to comment.