]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
- Value stored to 'ret' is never read.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 20:01:27 +0000 (15:01 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 8 Nov 2009 20:01:27 +0000 (15:01 -0500)
- Value stored to 'bits' is never read.

Found by Clang Static Analyzer.

SVN-Revision: 1607

libarchive/archive_write_set_compression_compress.c

index f913a23c53b1d1daae7d9f14ac1d56cf56792f9e..be1902692a83218b6f24b6df0c17205d428d79a7 100644 (file)
@@ -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?  "