diff --git a/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp b/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp index f8ad7a2c431..d7a60ddbbfd 100644 --- a/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp +++ b/src/cpp/rtps/builtin/discovery/endpoint/EDP.cpp @@ -292,11 +292,11 @@ bool EDP::newLocalWriterProxyData( bool EDP::updatedLocalReader( RTPSReader* reader, - const TopicAttributes& att, + const TopicAttributes&, const fastdds::dds::ReaderQos& rqos, const fastdds::rtps::ContentFilterProperty* content_filter) { - auto init_fun = [this, reader, &rqos, &att, content_filter]( + auto init_fun = [this, reader, &rqos, content_filter]( ReaderProxyData* rdata, bool updating, const ParticipantProxyData& participant_data) @@ -366,10 +366,10 @@ bool EDP::updatedLocalReader( bool EDP::updatedLocalWriter( RTPSWriter* writer, - const TopicAttributes& att, + const TopicAttributes&, const fastdds::dds::WriterQos& wqos) { - auto init_fun = [this, writer, &wqos, &att]( + auto init_fun = [this, writer, &wqos]( WriterProxyData* wdata, bool updating, const ParticipantProxyData& participant_data) diff --git a/src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp b/src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp index 9eb6c315f6e..1a7fb4ec63e 100644 --- a/src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp +++ b/src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp @@ -523,21 +523,25 @@ bool DomainParticipantImpl::register_statistics_type_and_topic( if (HISTORY_LATENCY_TOPIC == topic_name) { efd::TypeSupport history_latency_type(new WriterReaderDataPubSubType); + history_latency_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, history_latency_type); } else if (NETWORK_LATENCY_TOPIC == topic_name) { efd::TypeSupport network_latency_type(new Locator2LocatorDataPubSubType); + network_latency_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, network_latency_type); } else if (PUBLICATION_THROUGHPUT_TOPIC == topic_name || SUBSCRIPTION_THROUGHPUT_TOPIC == topic_name) { efd::TypeSupport throughput_type(new EntityDataPubSubType); + throughput_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, throughput_type); } else if (RTPS_SENT_TOPIC == topic_name || RTPS_LOST_TOPIC == topic_name) { efd::TypeSupport rtps_traffic_type(new Entity2LocatorTrafficPubSubType); + rtps_traffic_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, rtps_traffic_type); } else if (RESENT_DATAS_TOPIC == topic_name || HEARTBEAT_COUNT_TOPIC == topic_name || @@ -545,21 +549,25 @@ bool DomainParticipantImpl::register_statistics_type_and_topic( DATA_COUNT_TOPIC == topic_name || PDP_PACKETS_TOPIC == topic_name || EDP_PACKETS_TOPIC == topic_name) { efd::TypeSupport count_type(new EntityCountPubSubType); + count_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, count_type); } else if (DISCOVERY_TOPIC == topic_name) { efd::TypeSupport discovery_type(new DiscoveryTimePubSubType); + discovery_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, discovery_type); } else if (SAMPLE_DATAS_TOPIC == topic_name) { efd::TypeSupport sample_identity_count_type(new SampleIdentityCountPubSubType); + sample_identity_count_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, sample_identity_count_type); } else if (PHYSICAL_DATA_TOPIC == topic_name) { efd::TypeSupport physical_data_type(new PhysicalDataPubSubType); + physical_data_type->register_type_object_representation(); return_code = find_or_create_topic_and_type(topic, topic_name, physical_data_type); } return return_code;