From: Michihiro NAKAJIMA Date: Mon, 9 Nov 2009 11:06:48 +0000 (-0500) Subject: Value stored to 'code' is never read. X-Git-Tag: v2.8.0~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd62b9da1ab93fdcc08664364587855b5fcc22ba;p=thirdparty%2Flibarchive.git Value stored to 'code' is never read. Found by Clang Static Analyzer. SVN-Revision: 1628 --- diff --git a/libarchive/archive_read_support_compression_compress.c b/libarchive/archive_read_support_compression_compress.c index 752ddda34..0a956b5d7 100644 --- a/libarchive/archive_read_support_compression_compress.c +++ b/libarchive/archive_read_support_compression_compress.c @@ -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;