Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20592][20679] Fix hidden overloaded virtual methods #4622

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

EduPonz
Copy link

@EduPonz EduPonz commented Mar 26, 2024

Description

This PR is a backport combining:

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
  3. Enables running Github Ubuntu CI on pull_request events
  4. Enables running Github CI on PRs targeting intermediate branches

It substitutes:

Contributor Checklist

  • Commit messages follow the project guidelines.
  • 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.
  • N/A: 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.6.8 milestone Mar 26, 2024
@EduPonz EduPonz added needs-review PR that is ready to be reviewed ci-pending PR which CI is running labels Mar 26, 2024
@Mario-DL
Copy link
Member

Mario-DL commented Apr 2, 2024

@EduPonz would you mind addressing the conflicts here ?

* Refs #20592: Fix for test

Signed-off-by: EduPonz <[email protected]>

* Refs #20592: Fix for examples

Signed-off-by: EduPonz <[email protected]>

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

Signed-off-by: EduPonz <[email protected]>

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

Signed-off-by: EduPonz <[email protected]>

---------

Signed-off-by: EduPonz <[email protected]>
(cherry picked from commit 63cc242)
@EduPonz EduPonz force-pushed the hotfix/hidden_overloads/2.6.x branch from faa3bb0 to a8125c3 Compare April 3, 2024 07:16
@Mario-DL Mario-DL self-requested a review April 3, 2024 11:37
Copy link
Member

@Mario-DL Mario-DL 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

@Mario-DL
Copy link
Member

Mario-DL commented Apr 3, 2024

@richiprosima please test this

@Mario-DL
Copy link
Member

Mario-DL commented Apr 4, 2024

@richiprosima please test mac

@Mario-DL
Copy link
Member

Mario-DL commented Apr 5, 2024

Mac ci failures not significative, it tool 11 hours, meaning a congested server. Reordering it again

@Mario-DL
Copy link
Member

Mario-DL commented Apr 5, 2024

@richiprosima please test mac

3 similar comments
@Mario-DL
Copy link
Member

Mario-DL commented Apr 8, 2024

@richiprosima please test mac

@Mario-DL
Copy link
Member

Mario-DL commented Apr 9, 2024

@richiprosima please test mac

@Mario-DL
Copy link
Member

@richiprosima please test mac

@Mario-DL
Copy link
Member

Failed tests are unrelated to this PR.
We are not waiting jenkins mac ci this time since it is unstable. Ready to merge

@Mario-DL Mario-DL added ready-to-merge Ready to be merged. CI and changes have been reviewed and approved. and removed needs-review PR that is ready to be reviewed ci-pending PR which CI is running labels Apr 10, 2024
@EduPonz EduPonz merged commit dc6aaf3 into 2.6.x Apr 10, 2024
11 of 16 checks passed
@EduPonz EduPonz deleted the hotfix/hidden_overloads/2.6.x branch April 10, 2024 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Ready to be merged. CI and changes have been reviewed and approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants