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

Suppress unused variable warning #429

Merged
merged 2 commits into from
May 7, 2024

Conversation

Blast545
Copy link
Contributor

@Blast545 Blast545 commented May 7, 2024

🦟 Bug fix

Supresses warning shown in gz-sensors main jobs on jammy.

https://build.osrfoundation.org/job/gz_sensors-ci-main-jammy-amd64/59/gcc/

Summary

The variable is marked as unused by gcc, because it's only used in an assert condition. This will put an extra void statement so the compiler gets the warning suppressed.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Sorry, something went wrong.

Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
@Blast545 Blast545 requested a review from iche033 as a code owner May 7, 2024 20:04
@Blast545 Blast545 self-assigned this May 7, 2024
@github-actions github-actions bot added the 🏛️ ionic Gazebo Ionic label May 7, 2024
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
@Blast545 Blast545 merged commit bdb7e16 into main May 7, 2024
6 checks passed
@Blast545 Blast545 deleted the blast545/supress_doppler_velocity_unused_warning branch May 7, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants