From: Michihiro NAKAJIMA Date: Sun, 8 Nov 2009 19:54:20 +0000 (-0500) Subject: Value stored to 'target_block_length' is never read. X-Git-Tag: v2.8.0~209 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01e1dcb7c48ee9abe702ea9625a73b5e7c5ed31a;p=thirdparty%2Flibarchive.git Value stored to 'target_block_length' is never read. Found by Clang Static Analyzer. SVN-Revision: 1606 --- diff --git a/libarchive/archive_write_set_compression_bzip2.c b/libarchive/archive_write_set_compression_bzip2.c index 17f6a0a4d..c85db9295 100644 --- a/libarchive/archive_write_set_compression_bzip2.c +++ b/libarchive/archive_write_set_compression_bzip2.c @@ -291,7 +291,6 @@ archive_compressor_bzip2_finish(struct archive_write *a) block_length = state->stream.next_out - state->compressed; /* Tricky calculation to determine size of last block. */ - target_block_length = block_length; if (a->bytes_in_last_block <= 0) /* Default or Zero: pad to full block */ target_block_length = a->bytes_per_block;