Skip to content

Commit dbc232c

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in PDO extension
1 parent c73877d commit dbc232c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/pdo/pdo_stmt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ static bool pdo_stmt_verify_mode(pdo_stmt_t *stmt, zend_long mode, uint32_t mode
11251125
zend_argument_value_error(mode_arg_num, "cannot be PDO::FETCH_LAZY in PDOStatement::fetchAll()");
11261126
return 0;
11271127
}
1128-
/* fall through */
1128+
fallthrough;
11291129
default:
11301130
if ((flags & PDO_FETCH_SERIALIZE) == PDO_FETCH_SERIALIZE) {
11311131
zend_argument_value_error(mode_arg_num, "must use PDO::FETCH_SERIALIZE with PDO::FETCH_CLASS");
@@ -1139,7 +1139,7 @@ static bool pdo_stmt_verify_mode(pdo_stmt_t *stmt, zend_long mode, uint32_t mode
11391139
zend_argument_value_error(mode_arg_num, "must be a bitmask of PDO::FETCH_* constants");
11401140
return 0;
11411141
}
1142-
/* no break; */
1142+
fallthrough;
11431143

11441144
case PDO_FETCH_CLASS:
11451145
return 1;

0 commit comments

Comments
 (0)