From 38a4f55f64dbe8abc8f96b1f1aeb8d9da5fd6e33 Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Mon, 9 Nov 2009 01:49:03 -0500 Subject: [PATCH] Value stored to 's' is never read. Found by Clang Static Analyzer. SVN-Revision: 1617 --- libarchive/archive_util.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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); } -- 2.47.3