From: Michihiro NAKAJIMA Date: Sun, 8 Nov 2009 20:01:27 +0000 (-0500) Subject: - Value stored to 'ret' is never read. X-Git-Tag: v2.8.0~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc0f5113cb0969ad11f616ca2a168e61a1b54dd0;p=thirdparty%2Flibarchive.git - Value stored to 'ret' is never read. - Value stored to 'bits' is never read. Found by Clang Static Analyzer. SVN-Revision: 1607 --- diff --git a/libarchive/archive_write_set_compression_compress.c b/libarchive/archive_write_set_compression_compress.c index f913a23c5..be1902692 100644 --- a/libarchive/archive_write_set_compression_compress.c +++ b/libarchive/archive_write_set_compression_compress.c @@ -243,7 +243,6 @@ output_code(struct archive_write *a, int ocode) int bits, ret, clear_flg, bit_offset; clear_flg = ocode == CLEAR; - bits = state->code_len; /* * Since ocode is always >= 8 bits, only need to mask the first @@ -429,7 +428,6 @@ archive_compressor_compress_finish(struct archive_write *a) unsigned tocopy; state = (struct private_data *)a->compressor.data; - ret = 0; if (a->client_writer == NULL) { archive_set_error(&a->archive, ARCHIVE_ERRNO_PROGRAMMER, "No write callback is registered? "