Skip to content

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
@sonarqubecloud
Copy link

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
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