Skip to content

Commit 1a7f830

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in MySQLnd extension
1 parent 1109118 commit 1a7f830

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-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_debug.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
515515
case 'O':
516516
case 'A':
517517
self->flags |= MYSQLND_DEBUG_FLUSH;
518+
fallthrough;
518519
case 'a':
519520
case 'o':
520521
if (mode[i] == 'a' || mode[i] == 'A') {

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)