Skip to content

Commit bcb7dad

Browse files
committed
ext/pdo_firebird: Fix label follow by declaration
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 add a ; after the case label before the declaration.
1 parent afc1f0d commit bcb7dad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo_firebird/firebird_statement.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ static int pdo_firebird_stmt_set_attribute(pdo_stmt_t *stmt, zend_long attr, zva
886886
switch (attr) {
887887
default:
888888
return 0;
889-
case PDO_ATTR_CURSOR_NAME:
889+
case PDO_ATTR_CURSOR_NAME: ;
890890
zend_string *str_val = zval_try_get_string(val);
891891
if (str_val == NULL) {
892892
return 0;

0 commit comments

Comments
 (0)