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

Remove set but unused variable #24

Merged
merged 2 commits into from
Dec 7, 2022
Merged

Conversation

mjcarroll
Copy link
Contributor

@mjcarroll mjcarroll commented Dec 7, 2022

Clang checks -Wunused-but-set-variable.
This fails the build with -Werror also enabled.

This fix is also included in v1.6.2 in upstream: google/benchmark@e991355

Signed-off-by: Michael Carroll michael@openrobotics.org

Clang checks -Wunused-but-set-variable.
This fails the build with -Werror also enabled.

Signed-off-by: Michael Carroll <michael@openrobotics.org>
@cottsay
Copy link
Contributor

cottsay commented Dec 7, 2022

Can we use the verbatim patch file to capture context and history? https://github.com/google/benchmark/commit/e991355c02b93fe17713efe04cbc2e278e00fdbd.patch

@mjcarroll
Copy link
Contributor Author

Can we use the verbatim patch file to capture context and history?

Yes, I only thought to see if it was fixed upstream after I pushed. Will update.

Signed-off-by: Michael Carroll <michael@openrobotics.org>
@cottsay
Copy link
Contributor

cottsay commented Dec 7, 2022

Quick tests to verify patch applies on all platforms:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@cottsay cottsay merged commit 173518d into rolling Dec 7, 2022
@delete-merged-branch delete-merged-branch bot deleted the mjcarroll/unused_variable branch December 7, 2022 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants