]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Value stored to 'code' is never read.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 11:06:48 +0000 (06:06 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 9 Nov 2009 11:06:48 +0000 (06:06 -0500)
Found by Clang Static Analyzer.

SVN-Revision: 1628

libarchive/archive_read_support_compression_compress.c

index 752ddda344d4f1e323962b756aa22bb4cf83fea3..0a956b5d7f51f0264f9083f6ff2364a9f1bbacb1 100644 (file)
@@ -229,8 +229,8 @@ compress_bidder_init(struct archive_read_filter *self)
 
        /* XXX MOVE THE FOLLOWING OUT OF INIT() XXX */
 
-       code = getbits(self, 8); /* Skip first signature byte. */
-       code = getbits(self, 8); /* Skip second signature byte. */
+       (void)getbits(self, 8); /* Skip first signature byte. */
+       (void)getbits(self, 8); /* Skip second signature byte. */
 
        code = getbits(self, 8);
        state->maxcode_bits = code & 0x1f;