Skip to content

Commit 64f2657

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in PDO SQLite extension
1 parent f4afb56 commit 64f2657

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/pdo_sqlite/sqlite_statement.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ static int pdo_sqlite_stmt_execute(pdo_stmt_t *stmt)
103103

104104
case SQLITE_ERROR:
105105
sqlite3_reset(S->stmt);
106+
fallthrough;
106107
case SQLITE_MISUSE:
107108
case SQLITE_BUSY:
108109
default:
@@ -265,6 +266,7 @@ static int pdo_sqlite_stmt_fetch(pdo_stmt_t *stmt,
265266

266267
case SQLITE_ERROR:
267268
sqlite3_reset(S->stmt);
269+
fallthrough;
268270
default:
269271
pdo_sqlite_error_stmt(stmt);
270272
return 0;
@@ -359,6 +361,8 @@ static int pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *ret
359361

360362
case SQLITE_BLOB:
361363
add_next_index_string(&flags, "blob");
364+
/* TODO Check this is correct */
365+
fallthrough;
362366
case SQLITE_TEXT:
363367
add_assoc_string(return_value, "native_type", "string");
364368
break;

0 commit comments

Comments
 (0)