Skip to content

[24502] Fix unused variable warning on GCC 16 - #6392

Merged
richiware merged 1 commit into
masterfrom
bugfix/unused-variable
May 12, 2026
Merged

[24502] Fix unused variable warning on GCC 16#6392
richiware merged 1 commit into
masterfrom
bugfix/unused-variable

Conversation

@richiware

@richiware richiware commented May 11, 2026

Copy link
Copy Markdown
Member

Description

Fix unused variable warning on GCC 16.

Solves: #6391

@Mergifyio backport 3.4.x 3.2.x 2.14.x

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.
  • N/A: Any new configuration API has an equivalent XML API (with the corresponding XSD extension)
  • N/A: Changes are backport compatible: they do NOT break ABI nor change library core behavior.
  • N/A: 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.
  • N/A: If this is a critical bug fix, backports to the critical-only supported branches have been requested.
  • 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 added this to the v3.6.2 milestone May 11, 2026
@richiware
richiware requested a review from richiprosima May 11, 2026 07:51
@github-actions github-actions Bot added the ci-pending PR which CI is running label May 11, 2026
@richiware richiware changed the title Fix unused variable warning on GCC 16 [24502] Fix unused variable warning on GCC 16 May 12, 2026

@cferreiragonz cferreiragonz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@cferreiragonz cferreiragonz linked an issue May 12, 2026 that may be closed by this pull request
1 task
@cferreiragonz cferreiragonz 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 May 12, 2026
@richiware

Copy link
Copy Markdown
Member Author

Failed tests not related

@richiware
richiware merged commit 754655e into master May 12, 2026
35 of 37 checks passed
@richiware
richiware deleted the bugfix/unused-variable branch May 12, 2026 12:46
@cferreiragonz

Copy link
Copy Markdown
Contributor

@Mergifyio backport 3.2.x 2.14.x

@mergify

mergify Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

backport 3.2.x 2.14.x

✅ Backports have been created

Details

MiguelCompany pushed a commit that referenced this pull request Jul 8, 2026
* Fix unused variable on GCC 16 (#6392)

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
(cherry picked from commit 754655e)

* Backport changes of #6298

Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>

* Uncrustify

Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>

---------

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Signed-off-by: Carlos Ferreira González <carlosferreira@eprosima.com>
Co-authored-by: Ricardo González <ricardo@richiware.dev>
Co-authored-by: Carlos Ferreira González <carlosferreira@eprosima.com>
MiguelCompany pushed a commit that referenced this pull request Jul 27, 2026
(cherry picked from commit 754655e)

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
Co-authored-by: Ricardo González <ricardo@richiware.dev>
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.

Build failure on Fedora 44: variable set but not used

2 participants