From: Michihiro NAKAJIMA Date: Sun, 8 Nov 2009 20:04:27 +0000 (-0500) Subject: Value stored to 'target_block_length' is never read. X-Git-Tag: v2.8.0~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d61c80caf3cc0a5f42406d0fbfd4ed5161608221;p=thirdparty%2Flibarchive.git Value stored to 'target_block_length' is never read. Found by Clang Static Analyzer. SVN-Revision: 1608 --- diff --git a/libarchive/archive_write_set_compression_none.c b/libarchive/archive_write_set_compression_none.c index bdecb240d..4e7344a85 100644 --- a/libarchive/archive_write_set_compression_none.c +++ b/libarchive/archive_write_set_compression_none.c @@ -225,7 +225,6 @@ archive_compressor_none_finish(struct archive_write *a) block_length = state->buffer_size - state->avail; /* 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;