diff --git a/src/cpp/rtps/messages/MessageReceiver.cpp b/src/cpp/rtps/messages/MessageReceiver.cpp index bed6edcc17c..5974585e568 100644 --- a/src/cpp/rtps/messages/MessageReceiver.cpp +++ b/src/cpp/rtps/messages/MessageReceiver.cpp @@ -66,6 +66,7 @@ MessageReceiver::MessageReceiver( , crypto_payload_(participant->is_secure() ? rec_buffer_size : 0) #endif // if HAVE_SECURITY { + static_cast(participant); (void)rec_buffer_size; EPROSIMA_LOG_INFO(RTPS_MSG_IN, "Created with CDRMessage of size: " << rec_buffer_size);