Skip to content

Commit a82daf7

Browse files
committed
Convert fallthrough comment to pseudo-keyword in MySQLnd extension
1 parent fef5eaa commit a82daf7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/mysqlnd/mysqlnd_connection.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, send_close)(MYSQLND_CONN_DATA * const conn)
12541254
Do nothing, the connection will be brutally closed
12551255
and the server will catch it and free close from its side.
12561256
*/
1257-
/* Fall-through */
1257+
fallthrough;
12581258
case CONN_ALLOCED:
12591259
/*
12601260
Allocated but not connected or there was failure when trying
@@ -1263,7 +1263,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, send_close)(MYSQLND_CONN_DATA * const conn)
12631263
Fall-through
12641264
*/
12651265
SET_CONNECTION_STATE(&conn->state, CONN_QUIT_SENT);
1266-
/* Fall-through */
1266+
fallthrough;
12671267
case CONN_QUIT_SENT:
12681268
/* The user has killed its own connection */
12691269
vio->data->m.close_stream(vio, conn->stats, conn->error_info);

ext/mysqlnd/mysqlnd_ps_codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ mysqlnd_stmt_execute_calculate_param_values_size(MYSQLND_STMT_DATA * stmt, zval
742742
break;
743743
case MYSQL_TYPE_LONGLONG:
744744
is_longlong = 4;
745-
/* fall-through */
745+
fallthrough;
746746
case MYSQL_TYPE_LONG:
747747
{
748748
zval *tmp_data = (*copies_param && !Z_ISUNDEF((*copies_param)[i]))? &(*copies_param)[i]: the_var;

0 commit comments

Comments
 (0)