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

[20272] Avoid a maybe-uninitialized warning #4342

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

Mario-DL
Copy link
Member

@Mario-DL Mario-DL commented Jan 31, 2024

Description

While compiling with gcc 13.2.0 here, a maybe-unitialized warning was triggered. This PR fixes the issue by giving an initial value to the pointer.

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.

Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
@Mario-DL Mario-DL added the skip-ci Automatically pass CI label Jan 31, 2024
@Mario-DL Mario-DL added this to the v2.13.2 milestone Jan 31, 2024
@EduPonz EduPonz modified the milestones: v2.13.2, v2.13.3 Feb 1, 2024
@JesusPoderoso JesusPoderoso added the needs-review PR that is ready to be reviewed label Feb 8, 2024
@MiguelCompany MiguelCompany merged commit 232f678 into master Feb 9, 2024
11 checks passed
@MiguelCompany MiguelCompany deleted the bugfix/uninitialized-warning branch February 9, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-review PR that is ready to be reviewed skip-ci Automatically pass CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants