Skip to content

Commit e50abfc

Browse files
committed
Fix [-Wimplicit-fallthrough] warnings in Zlib extension
1 parent ab671dd commit e50abfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/zlib/zlib.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ static int php_zlib_output_handler_ex(php_zlib_context *ctx, php_output_context
231231
deflateEnd(&ctx->Z);
232232
return FAILURE;
233233
}
234+
fallthrough;
234235
case Z_STREAM_END:
235236
if (ctx->Z.avail_in) {
236237
memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in);
@@ -366,7 +367,7 @@ static void php_zlib_output_compression_start(void)
366367
break;
367368
case 1:
368369
ZLIBG(output_compression) = PHP_OUTPUT_HANDLER_DEFAULT_SIZE;
369-
/* break omitted intentionally */
370+
fallthrough;
370371
default:
371372
if ( php_zlib_output_encoding() &&
372373
(h = php_zlib_output_handler_init(ZEND_STRL(PHP_ZLIB_OUTPUT_HANDLER_NAME), ZLIBG(output_compression), PHP_OUTPUT_HANDLER_STDFLAGS)) &&

0 commit comments

Comments
 (0)