Skip to content

Commit c10fc5c

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in PDO extension
1 parent 380eb59 commit c10fc5c

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
@@ -1124,7 +1124,7 @@ static bool pdo_stmt_verify_mode(pdo_stmt_t *stmt, zend_long mode, uint32_t mode
11241124
zend_argument_value_error(mode_arg_num, "cannot be PDO::FETCH_LAZY in PDOStatement::fetchAll()");
11251125
return 0;
11261126
}
1127-
/* fall through */
1127+
fallthrough;
11281128
default:
11291129
if ((flags & PDO_FETCH_SERIALIZE) == PDO_FETCH_SERIALIZE) {
11301130
zend_argument_value_error(mode_arg_num, "must use PDO::FETCH_SERIALIZE with PDO::FETCH_CLASS");
@@ -1138,7 +1138,7 @@ static bool pdo_stmt_verify_mode(pdo_stmt_t *stmt, zend_long mode, uint32_t mode
11381138
zend_argument_value_error(mode_arg_num, "must be a bitmask of PDO::FETCH_* constants");
11391139
return 0;
11401140
}
1141-
/* no break; */
1141+
fallthrough;
11421142

11431143
case PDO_FETCH_CLASS:
11441144
return 1;

0 commit comments

Comments
 (0)