Skip to content

Commit 83f4510

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in PDO extension
1 parent caba694 commit 83f4510

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ static inline void fetch_value(pdo_stmt_t *stmt, zval *dest, int colno, int *typ
554554
ZVAL_STRINGL(dest, value, value_len);
555555
break;
556556
}
557+
fallthrough;
557558
default:
558559
ZVAL_NULL(dest);
559560
}
@@ -1155,7 +1156,7 @@ static bool pdo_stmt_verify_mode(pdo_stmt_t *stmt, zend_long mode, uint32_t mode
11551156
zend_argument_value_error(mode_arg_num, "cannot be PDO::FETCH_LAZY in PDOStatement::fetchAll()");
11561157
return 0;
11571158
}
1158-
/* fall through */
1159+
fallthrough;
11591160
default:
11601161
if ((flags & PDO_FETCH_SERIALIZE) == PDO_FETCH_SERIALIZE) {
11611162
zend_argument_value_error(mode_arg_num, "must use PDO::FETCH_SERIALIZE with PDO::FETCH_CLASS");
@@ -1169,7 +1170,7 @@ static bool pdo_stmt_verify_mode(pdo_stmt_t *stmt, zend_long mode, uint32_t mode
11691170
zend_argument_value_error(mode_arg_num, "must be a bitmask of PDO::FETCH_* constants");
11701171
return 0;
11711172
}
1172-
/* no break; */
1173+
fallthrough;
11731174

11741175
case PDO_FETCH_CLASS:
11751176
return 1;

0 commit comments

Comments
 (0)