From ef57049f9071537e8e6770d7ea6c7eef37c01fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez=20Moreno?= Date: Thu, 30 May 2024 15:09:56 +0200 Subject: [PATCH] Refs #21044. Fix warning on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno --- .../AdvancedConfigurationTypeObjectSupport.cxx | 1 - .../BasicConfigurationExample/HelloWorldTypeObjectSupport.cxx | 1 - examples/cpp/dds/Configurability/sampleTypeObjectSupport.cxx | 1 - .../cpp/dds/CustomListenerExample/TopicTypeObjectSupport.cxx | 1 - .../dds/DeadlineQoSExample/deadlinepayloadTypeObjectSupport.cxx | 1 - examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.cxx | 1 - examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.cxx | 1 - examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.cxx | 1 - examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.cxx | 1 - .../cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.cxx | 1 - examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.cxx | 1 - .../OwnershipStrengthTypeObjectSupport.cxx | 1 - .../cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.cxx | 1 - examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.cxx | 1 - .../cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.cxx | 1 - 15 files changed, 15 deletions(-) diff --git a/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationTypeObjectSupport.cxx b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationTypeObjectSupport.cxx index 866081f2ca5..1402c7ada5c 100644 --- a/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationTypeObjectSupport.cxx +++ b/examples/cpp/dds/AdvancedConfigurationExample/AdvancedConfigurationTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_AdvancedConfiguration_type_identifier( { StructTypeFlag struct_flags_AdvancedConfiguration = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_AdvancedConfiguration); QualifiedTypeName type_name_AdvancedConfiguration = "AdvancedConfiguration"; eprosima::fastcdr::optional type_ann_builtin_AdvancedConfiguration; eprosima::fastcdr::optional ann_custom_AdvancedConfiguration; diff --git a/examples/cpp/dds/BasicConfigurationExample/HelloWorldTypeObjectSupport.cxx b/examples/cpp/dds/BasicConfigurationExample/HelloWorldTypeObjectSupport.cxx index e2040e6e7d6..83279c5d000 100644 --- a/examples/cpp/dds/BasicConfigurationExample/HelloWorldTypeObjectSupport.cxx +++ b/examples/cpp/dds/BasicConfigurationExample/HelloWorldTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_HelloWorld_type_identifier( { StructTypeFlag struct_flags_HelloWorld = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_HelloWorld); QualifiedTypeName type_name_HelloWorld = "HelloWorld"; eprosima::fastcdr::optional type_ann_builtin_HelloWorld; eprosima::fastcdr::optional ann_custom_HelloWorld; diff --git a/examples/cpp/dds/Configurability/sampleTypeObjectSupport.cxx b/examples/cpp/dds/Configurability/sampleTypeObjectSupport.cxx index 42193b79d48..e9dcd1a977b 100644 --- a/examples/cpp/dds/Configurability/sampleTypeObjectSupport.cxx +++ b/examples/cpp/dds/Configurability/sampleTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_sample_type_identifier( { StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_sample); QualifiedTypeName type_name_sample = "sample"; eprosima::fastcdr::optional type_ann_builtin_sample; eprosima::fastcdr::optional ann_custom_sample; diff --git a/examples/cpp/dds/CustomListenerExample/TopicTypeObjectSupport.cxx b/examples/cpp/dds/CustomListenerExample/TopicTypeObjectSupport.cxx index 3c806d3f7ec..ec70f284376 100644 --- a/examples/cpp/dds/CustomListenerExample/TopicTypeObjectSupport.cxx +++ b/examples/cpp/dds/CustomListenerExample/TopicTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_Topic_type_identifier( { StructTypeFlag struct_flags_Topic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_Topic); QualifiedTypeName type_name_Topic = "Topic"; eprosima::fastcdr::optional type_ann_builtin_Topic; eprosima::fastcdr::optional ann_custom_Topic; diff --git a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadTypeObjectSupport.cxx b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadTypeObjectSupport.cxx index fadae4f897b..b9768d78f93 100644 --- a/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadTypeObjectSupport.cxx +++ b/examples/cpp/dds/DeadlineQoSExample/deadlinepayloadTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_HelloMsg_type_identifier( { StructTypeFlag struct_flags_HelloMsg = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_HelloMsg); QualifiedTypeName type_name_HelloMsg = "HelloMsg"; eprosima::fastcdr::optional type_ann_builtin_HelloMsg; eprosima::fastcdr::optional ann_custom_HelloMsg; diff --git a/examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.cxx b/examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.cxx index 3c806d3f7ec..ec70f284376 100644 --- a/examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.cxx +++ b/examples/cpp/dds/DisablePositiveACKs/TopicTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_Topic_type_identifier( { StructTypeFlag struct_flags_Topic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_Topic); QualifiedTypeName type_name_Topic = "Topic"; eprosima::fastcdr::optional type_ann_builtin_Topic; eprosima::fastcdr::optional ann_custom_Topic; diff --git a/examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.cxx b/examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.cxx index cc72d32c1b1..25a58904bf2 100644 --- a/examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.cxx +++ b/examples/cpp/dds/Filtering/FilteringExampleTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_FilteringExample_type_identifier( { StructTypeFlag struct_flags_FilteringExample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_FilteringExample); QualifiedTypeName type_name_FilteringExample = "FilteringExample"; eprosima::fastcdr::optional type_ann_builtin_FilteringExample; eprosima::fastcdr::optional ann_custom_FilteringExample; diff --git a/examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.cxx b/examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.cxx index 42193b79d48..e9dcd1a977b 100644 --- a/examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.cxx +++ b/examples/cpp/dds/HistoryKind/sampleTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_sample_type_identifier( { StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_sample); QualifiedTypeName type_name_sample = "sample"; eprosima::fastcdr::optional type_ann_builtin_sample; eprosima::fastcdr::optional ann_custom_sample; diff --git a/examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.cxx b/examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.cxx index 42193b79d48..e9dcd1a977b 100644 --- a/examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.cxx +++ b/examples/cpp/dds/LateJoiners/sampleTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_sample_type_identifier( { StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_sample); QualifiedTypeName type_name_sample = "sample"; eprosima::fastcdr::optional type_ann_builtin_sample; eprosima::fastcdr::optional ann_custom_sample; diff --git a/examples/cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.cxx b/examples/cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.cxx index 097bf5a502e..9306797b046 100644 --- a/examples/cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.cxx +++ b/examples/cpp/dds/LifespanQoSExample/LifespanTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_Lifespan_type_identifier( { StructTypeFlag struct_flags_Lifespan = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_Lifespan); QualifiedTypeName type_name_Lifespan = "Lifespan"; eprosima::fastcdr::optional type_ann_builtin_Lifespan; eprosima::fastcdr::optional ann_custom_Lifespan; diff --git a/examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.cxx b/examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.cxx index 3c806d3f7ec..ec70f284376 100644 --- a/examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.cxx +++ b/examples/cpp/dds/LivelinessQoS/TopicTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_Topic_type_identifier( { StructTypeFlag struct_flags_Topic = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_Topic); QualifiedTypeName type_name_Topic = "Topic"; eprosima::fastcdr::optional type_ann_builtin_Topic; eprosima::fastcdr::optional ann_custom_Topic; diff --git a/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthTypeObjectSupport.cxx b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthTypeObjectSupport.cxx index 04796a961cc..9c4650ab567 100644 --- a/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthTypeObjectSupport.cxx +++ b/examples/cpp/dds/OwnershipStrengthQoSExample/OwnershipStrengthTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_ExampleMessage_type_identifier( { StructTypeFlag struct_flags_ExampleMessage = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_ExampleMessage); QualifiedTypeName type_name_ExampleMessage = "ExampleMessage"; eprosima::fastcdr::optional type_ann_builtin_ExampleMessage; eprosima::fastcdr::optional ann_custom_ExampleMessage; diff --git a/examples/cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.cxx b/examples/cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.cxx index 42193b79d48..e9dcd1a977b 100644 --- a/examples/cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.cxx +++ b/examples/cpp/dds/SampleConfig_Controller/sampleTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_sample_type_identifier( { StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_sample); QualifiedTypeName type_name_sample = "sample"; eprosima::fastcdr::optional type_ann_builtin_sample; eprosima::fastcdr::optional ann_custom_sample; diff --git a/examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.cxx b/examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.cxx index 42193b79d48..e9dcd1a977b 100644 --- a/examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.cxx +++ b/examples/cpp/dds/SampleConfig_Events/sampleTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_sample_type_identifier( { StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_sample); QualifiedTypeName type_name_sample = "sample"; eprosima::fastcdr::optional type_ann_builtin_sample; eprosima::fastcdr::optional ann_custom_sample; diff --git a/examples/cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.cxx b/examples/cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.cxx index 42193b79d48..e9dcd1a977b 100644 --- a/examples/cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.cxx +++ b/examples/cpp/dds/SampleConfig_Multimedia/sampleTypeObjectSupport.cxx @@ -51,7 +51,6 @@ void register_sample_type_identifier( { StructTypeFlag struct_flags_sample = TypeObjectUtils::build_struct_type_flag(eprosima::fastdds::dds::xtypes::ExtensibilityKind::NOT_APPLIED, false, false); - static_cast(return_code_sample); QualifiedTypeName type_name_sample = "sample"; eprosima::fastcdr::optional type_ann_builtin_sample; eprosima::fastcdr::optional ann_custom_sample;