Skip to content

[24122] Fix warning on ubuntu noble#133

Merged
richiware merged 1 commit intomasterfrom
bugfix/24104
Jan 27, 2026
Merged

[24122] Fix warning on ubuntu noble#133
richiware merged 1 commit intomasterfrom
bugfix/24104

Conversation

@richiware
Copy link
Member

@richiware richiware commented Jan 27, 2026

Description

This PR fixes:

../../eprosima/discovery-server/src/DiscoveryServerManager.cpp: In member function ‘void eprosima::discovery_server::DiscoveryServerManager::loadClient(tinyxml2::XMLElement*)’:
../../eprosima/discovery-server/src/DiscoveryServerManager.cpp:1106:28: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
 1106 |                     if (p4 = std::dynamic_pointer_cast<TCPv4TransportDescriptor>(sp))
      |                         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@Mergifyio backport 2.1.x 2.0.x 1.2.x

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The added tests pass locally.
  • Changes are backwards compatible.
  • 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.

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
@richiware richiware changed the title Fix warning on ubuntu noble [24122] Fix warning on ubuntu noble Jan 27, 2026
@cferreiragonz cferreiragonz added this to the v2.2.1 milestone Jan 27, 2026
Copy link
Contributor

@cferreiragonz cferreiragonz 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

@richiware richiware merged commit cb2addc into master Jan 27, 2026
4 checks passed
@richiware richiware deleted the bugfix/24104 branch January 27, 2026 08:19
@richiware
Copy link
Member Author

@Mergifyio backport 2.1.x 2.0.x 1.2.x

@mergify
Copy link

mergify bot commented Jan 27, 2026

backport 2.1.x 2.0.x 1.2.x

✅ Backports have been created

Details

Cherry-pick of cb2addc has failed:

On branch mergify/bp/1.2.x/pr-133
Your branch is up to date with 'origin/1.2.x'.

You are currently cherry-picking commit cb2addc.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/DiscoveryServerManager.cpp

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

mergify bot pushed a commit that referenced this pull request Jan 27, 2026
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
(cherry picked from commit cb2addc)
mergify bot pushed a commit that referenced this pull request Jan 27, 2026
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
(cherry picked from commit cb2addc)
mergify bot pushed a commit that referenced this pull request Jan 27, 2026
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
(cherry picked from commit cb2addc)

# Conflicts:
#	src/DiscoveryServerManager.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants