From: Michihiro NAKAJIMA Date: Mon, 9 Nov 2009 06:49:03 +0000 (-0500) Subject: Value stored to 's' is never read. X-Git-Tag: v2.8.0~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38a4f55f64dbe8abc8f96b1f1aeb8d9da5fd6e33;p=thirdparty%2Flibarchive.git Value stored to 's' is never read. Found by Clang Static Analyzer. SVN-Revision: 1617 --- diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c index 709c66cab..db3684185 100644 --- a/libarchive/archive_util.c +++ b/libarchive/archive_util.c @@ -187,12 +187,10 @@ void __archive_errx(int retvalue, const char *msg) { static const char *msg1 = "Fatal Internal Error in libarchive: "; - size_t s; - s = write(2, msg1, strlen(msg1)); - s = write(2, msg, strlen(msg)); - s = write(2, "\n", 1); - (void)s; /* UNUSED */ + (void)write(2, msg1, strlen(msg1)); + (void)write(2, msg, strlen(msg)); + (void)write(2, "\n", 1); exit(retvalue); }