From: Michihiro NAKAJIMA Date: Sun, 8 Nov 2009 19:18:54 +0000 (-0500) Subject: Value stored to 'ar' is never read. X-Git-Tag: v2.8.0~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0482924ccb582feface3fea972d4ca162f33f632;p=thirdparty%2Flibarchive.git Value stored to 'ar' is never read. Found by Clang Static Analyzer. SVN-Revision: 1600 --- diff --git a/libarchive/archive_read_support_format_ar.c b/libarchive/archive_read_support_format_ar.c index 587aad266..90fcc23b2 100644 --- a/libarchive/archive_read_support_format_ar.c +++ b/libarchive/archive_read_support_format_ar.c @@ -134,7 +134,6 @@ archive_read_format_ar_cleanup(struct archive_read *a) static int archive_read_format_ar_bid(struct archive_read *a) { - struct ar *ar; const void *h; if (a->archive.archive_format != 0 && @@ -142,8 +141,6 @@ archive_read_format_ar_bid(struct archive_read *a) ARCHIVE_FORMAT_AR) return(0); - ar = (struct ar *)(a->format->data); - /* * Verify the 8-byte file signature. * TODO: Do we need to check more than this?