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

Fix unused-variable error for lower gcc version due to structure bindings #2265

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

13015517713
Copy link
Contributor

@13015517713 13015517713 commented Apr 22, 2024

Gcc with lower version will report an error when any variable of the structured binding is not used. When compile the project, it will fail due to the unused-variable. If gcc verion is less than 8, disable unused-variable check.

Details: https://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id=81767

This fixes #2215

@13015517713 13015517713 marked this pull request as draft April 22, 2024 10:04
@13015517713 13015517713 marked this pull request as ready for review April 22, 2024 10:09
Copy link

sonarcloud bot commented Apr 22, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@PragmaTwice PragmaTwice merged commit e780939 into apache:unstable Apr 22, 2024
31 checks passed
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.

error: unused variable ‘_’ [-Werror=unused-variable]
4 participants