From: Michihiro NAKAJIMA Date: Sun, 8 Nov 2009 18:47:56 +0000 (-0500) Subject: Value stored to 'target_block_length' is never read. X-Git-Tag: v2.8.0~220 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fcfb0d37629dda92eadc8f457d1943aa6c83a328;p=thirdparty%2Flibarchive.git Value stored to 'target_block_length' is never read. Found by Clang Static Analyzer. SVN-Revision: 1595 --- diff --git a/libarchive/archive_write_set_compression_gzip.c b/libarchive/archive_write_set_compression_gzip.c index a8b1c3336..48b65a9a0 100644 --- a/libarchive/archive_write_set_compression_gzip.c +++ b/libarchive/archive_write_set_compression_gzip.c @@ -365,7 +365,6 @@ archive_compressor_gzip_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;