Skip to content

[20592] Fix hidden overloaded virtual methods#4516

Merged
EduPonz merged 4 commits intomasterfrom
hotfix/hidden_overloaded_virtuals
Mar 20, 2024
Merged

[20592] Fix hidden overloaded virtual methods#4516
EduPonz merged 4 commits intomasterfrom
hotfix/hidden_overloaded_virtuals

Conversation

@EduPonz
Copy link
Copy Markdown

@EduPonz EduPonz commented Mar 6, 2024

Description

Before this PR, compiling with GCC option -Woverloaded-virtual resulted in compilation warnings due to overloaded virtual methods being hidden in derived classes that do not override all the parent's overloads. This PR:

  1. Fixes all those warnings
  2. Adds more warning reporting options GCC in Ubuntu CI on Github

@Mergifyio backport 2.13.x 2.12.x 2.10.x 2.6.x

Contributor Checklist

  • Commit messages follow the project guidelines.
  • N/A: The code follows the style guidelines of this project.
  • N/A: Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
  • N/A: Any new/modified methods have been properly documented using Doxygen.
  • Changes are ABI compatible.
  • Changes are API compatible.
  • N/A: New feature has been added to the versions.md file (if applicable).
  • N/A: New feature has been documented/Current behavior is correctly described in the documentation.
  • Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

@EduPonz EduPonz added this to the v2.14.1 milestone Mar 6, 2024
@EduPonz
Copy link
Copy Markdown
Author

EduPonz commented Mar 7, 2024

@richiprosima please test this

@MiguelCompany MiguelCompany self-requested a review March 11, 2024 13:25
Copy link
Copy Markdown
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows related warning: 'eprosima::fastrtps::rtps::PDP::announceParticipantState': ambiguous call to overloaded function

See related suggestion below

@EduPonz EduPonz force-pushed the hotfix/hidden_overloaded_virtuals branch from 5c978d0 to 431a3fc Compare March 12, 2024 10:39
@EduPonz
Copy link
Copy Markdown
Author

EduPonz commented Mar 12, 2024

@richiprosima please test this

MiguelCompany
MiguelCompany previously approved these changes Mar 12, 2024
Copy link
Copy Markdown
Member

@MiguelCompany MiguelCompany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with green CI

@MiguelCompany MiguelCompany added the ci-pending PR which CI is running label Mar 12, 2024
@MiguelCompany MiguelCompany dismissed their stale review March 13, 2024 07:11

The merge-base changed after approval.

@EduPonz EduPonz added ready-to-merge Ready to be merged. CI and changes have been reviewed and approved. and removed ci-pending PR which CI is running labels Mar 13, 2024
@MiguelCompany MiguelCompany added the temporarily-blocked PR must be merged after another one label Mar 13, 2024
EduPonz added 4 commits March 20, 2024 07:17
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
Signed-off-by: EduPonz <eduardoponz@eprosima.com>
…articipantState

Signed-off-by: EduPonz <eduardoponz@eprosima.com>
@EduPonz EduPonz force-pushed the hotfix/hidden_overloaded_virtuals branch from 431a3fc to 6a15ead Compare March 20, 2024 06:18
@EduPonz EduPonz added ci-pending PR which CI is running and removed ready-to-merge Ready to be merged. CI and changes have been reviewed and approved. temporarily-blocked PR must be merged after another one labels Mar 20, 2024
@EduPonz
Copy link
Copy Markdown
Author

EduPonz commented Mar 20, 2024

@richiprosima please test this

@EduPonz
Copy link
Copy Markdown
Author

EduPonz commented Mar 20, 2024

@richiprosima please test windows test mac

@EduPonz EduPonz removed the ci-pending PR which CI is running label Mar 20, 2024
@EduPonz
Copy link
Copy Markdown
Author

EduPonz commented Mar 20, 2024

@Mergifyio backport 2.13.x 2.10.x 2.6.x

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 20, 2024

backport 2.13.x 2.10.x 2.6.x

✅ Backports have been created

Details

@EduPonz EduPonz merged commit 63cc242 into master Mar 20, 2024
@EduPonz EduPonz deleted the hotfix/hidden_overloaded_virtuals branch March 20, 2024 18:48
mergify bot pushed a commit that referenced this pull request Mar 20, 2024
* Refs #20592: Fix for test

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Refs #20592: Fix for examples

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Refs #20592: Add more warning flags to Ubuntu CI

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Refs #20592: Remove default values on overloaded PDPClient::announceParticipantState

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

---------

Signed-off-by: EduPonz <eduardoponz@eprosima.com>
(cherry picked from commit 63cc242)

# Conflicts:
#	.github/workflows/reusable-ubuntu-ci.yml
#	test/dds/communication/security/PublisherModule.hpp
#	test/dds/communication/security/SubscriberModule.hpp
mergify bot pushed a commit that referenced this pull request Mar 20, 2024
* Refs #20592: Fix for test

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Refs #20592: Fix for examples

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Refs #20592: Add more warning flags to Ubuntu CI

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Refs #20592: Remove default values on overloaded PDPClient::announceParticipantState

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

---------

Signed-off-by: EduPonz <eduardoponz@eprosima.com>
(cherry picked from commit 63cc242)

# Conflicts:
#	.github/workflows/reusable-ubuntu-ci.yml
#	examples/cpp/dds/DiscoveryServerExample/DiscoveryServerPublisher.h
#	examples/cpp/dds/DiscoveryServerExample/DiscoveryServerServer.h
#	examples/cpp/dds/DiscoveryServerExample/DiscoveryServerSubscriber.h
#	test/blackbox/common/DDSBlackboxTestsDataRepresentationQos.cpp
#	test/blackbox/common/DDSBlackboxTestsDiscovery.cpp
#	test/dds/communication/security/PublisherModule.hpp
#	test/dds/communication/security/SubscriberModule.hpp
#	test/unittest/statistics/dds/StatisticsDomainParticipantStatusQueryableTests.cpp
mergify bot pushed a commit that referenced this pull request Mar 20, 2024
* Refs #20592: Fix for test

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Refs #20592: Fix for examples

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Refs #20592: Add more warning flags to Ubuntu CI

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

* Refs #20592: Remove default values on overloaded PDPClient::announceParticipantState

Signed-off-by: EduPonz <eduardoponz@eprosima.com>

---------

Signed-off-by: EduPonz <eduardoponz@eprosima.com>
(cherry picked from commit 63cc242)

# Conflicts:
#	.github/workflows/reusable-ubuntu-ci.yml
#	examples/C++/RTPSTest_persistent/TestReaderPersistent.h
#	examples/C++/RTPSTest_persistent/TestWriterPersistent.h
#	examples/C++/RTPSTest_registered/TestReaderRegistered.h
#	examples/C++/RTPSTest_registered/TestWriterRegistered.h
#	examples/cpp/dds/DiscoveryServerExample/DiscoveryServerServer.h
#	src/cpp/rtps/builtin/discovery/participant/timedevent/DSClientEvent.cpp
#	test/blackbox/common/DDSBlackboxTestsBasic.cpp
#	test/blackbox/common/DDSBlackboxTestsDataRepresentationQos.cpp
#	test/blackbox/common/DDSBlackboxTestsDiscovery.cpp
#	test/blackbox/common/DDSBlackboxTestsFindTopic.cpp
#	test/dds/communication/SubscriberDynamic.cpp
#	test/dds/communication/security/PublisherModule.hpp
#	test/dds/communication/security/SubscriberModule.hpp
#	test/unittest/dds/participant/ParticipantTests.cpp
#	test/unittest/dds/subscriber/DataReaderHistoryTests.cpp
#	test/unittest/statistics/dds/StatisticsDomainParticipantStatusQueryableTests.cpp
@EduPonz EduPonz mentioned this pull request Mar 21, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants