Skip to content

Commit 128fbd1

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in MySQLnd extension
1 parent a1d4416 commit 128fbd1

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
@@ -1241,7 +1241,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, send_close)(MYSQLND_CONN_DATA * const conn)
12411241
Do nothing, the connection will be brutally closed
12421242
and the server will catch it and free close from its side.
12431243
*/
1244-
/* Fall-through */
1244+
fallthrough;
12451245
case CONN_ALLOCED:
12461246
/*
12471247
Allocated but not connected or there was failure when trying
@@ -1250,7 +1250,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, send_close)(MYSQLND_CONN_DATA * const conn)
12501250
Fall-through
12511251
*/
12521252
SET_CONNECTION_STATE(&conn->state, CONN_QUIT_SENT);
1253-
/* Fall-through */
1253+
fallthrough;
12541254
case CONN_QUIT_SENT:
12551255
/* The user has killed its own connection */
12561256
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
@@ -707,7 +707,7 @@ mysqlnd_stmt_execute_calculate_param_values_size(MYSQLND_STMT_DATA * stmt, zval
707707
break;
708708
case MYSQL_TYPE_LONGLONG:
709709
is_longlong = 4;
710-
/* fall-through */
710+
fallthrough;
711711
case MYSQL_TYPE_LONG:
712712
{
713713
zval *tmp_data = (*copies_param && !Z_ISUNDEF((*copies_param)[i]))? &(*copies_param)[i]: the_var;

0 commit comments

Comments
 (0)