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

GH-39387: [C++] Mark debug-only variables as unused #39417

Closed
wants to merge 1 commit into from

Conversation

felipecrv
Copy link
Contributor

@felipecrv felipecrv commented Jan 1, 2024

Rationale for this change

The variables is used for a debug-build-only assertion.

What changes are included in this PR?

Adding an annotation that makes the compiler OK with the variable being unused in builds without asserts.

Are these changes tested?

N/A.

@felipecrv
Copy link
Contributor Author

@mapleFU

@felipecrv felipecrv closed this Jan 2, 2024
@felipecrv felipecrv deleted the debug_only branch January 2, 2024 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C++] unused-variable warnings
1 participant