Skip to content

Commit 2d986c8

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in OpenSSL extension
1 parent 720f4f1 commit 2d986c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/openssl/xp_ssl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ static int php_openssl_handle_ssl_error(php_stream *stream, int nr_bytes, bool i
238238
break;
239239
}
240240

241-
242-
/* fall through */
241+
fallthrough;
243242
default:
244243
/* some other error */
245244
ecode = ERR_get_error();
@@ -540,6 +539,7 @@ static int php_openssl_apply_peer_verification_policy(SSL *ssl, X509 *peer, php_
540539
break;
541540
}
542541
/* not allowed, so fall through */
542+
fallthrough;
543543
default:
544544
php_error_docref(NULL, E_WARNING,
545545
"Could not verify peer: code:%d %s",

0 commit comments

Comments
 (0)