From d14d54859d5fa3716c96c86d1a1e8a1bacb1dbd8 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 16 Apr 2020 00:05:44 -0500 Subject: Weed-whack a few warnings out of pending so allyesconfig is less noisy. --- toys/pending/xzcat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toys/pending/xzcat.c') diff --git a/toys/pending/xzcat.c b/toys/pending/xzcat.c index 55e0a051..6fdf3428 100644 --- a/toys/pending/xzcat.c +++ b/toys/pending/xzcat.c @@ -2570,7 +2570,7 @@ static enum xz_ret dec_block(struct xz_dec *s, struct xz_buf *b) if (s->check_type == XZ_CHECK_CRC32) s->crc = xz_crc32(b->out + s->out_start, b->out_pos - s->out_start, s->crc); - else if (s->check_type == XZ_CHECK_CRC64) + else if (s->check_type == XZ_CHECK_CRC64) { s->crc = ~(s->crc); size_t size = b->out_pos - s->out_start; uint8_t *buf = b->out + s->out_start; @@ -2579,6 +2579,7 @@ static enum xz_ret dec_block(struct xz_dec *s, struct xz_buf *b) --size; } s->crc=~(s->crc); + } if (ret == XZ_STREAM_END) { if (s->block_header.compressed != VLI_UNKNOWN -- cgit v1.2.3