Skip to content

Conversation

shivammathur
Copy link
Member

@shivammathur shivammathur commented Dec 21, 2024

This PR fixes a build failure in pdo_firebird.

After #17173, I get this error when compiling with gcc-9.

error: a label can only be part of a statement and a declaration is not a statement.

Build failure: https://github.com/shivammathur/php-builder/actions/runs/12440286121/job/34735517472#step:5:3219

To fix this we can wrap the code in the switch case in brackets.

A label should be followed by a statement and not a declaration, else old gcc gives the following error: a label can only be part of a statement and a declaration is not a statement

To fix this we wrap the code in the switch case block in braces.
Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@shivammathur shivammathur merged commit b1220da into php:master Dec 21, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants