From: Michihiro NAKAJIMA Date: Tue, 11 Sep 2012 10:50:28 +0000 (+0900) Subject: Remove dead assignment that Clang Static Analyzer pointed out. X-Git-Tag: v3.1.0~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3296a25e1;p=thirdparty%2Flibarchive.git Remove dead assignment that Clang Static Analyzer pointed out. --- diff --git a/tar/util.c b/tar/util.c index 7e705c2be..70788aee1 100644 --- a/tar/util.c +++ b/tar/util.c @@ -148,7 +148,7 @@ safe_fprintf(FILE *f, const char *fmt, ...) /* Note: mbrtowc() has a cleaner API, but mbtowc() seems a bit * more portable, so we use that here instead. */ - n = mbtowc(NULL, NULL, 1); /* Reset the shift state. */ + (void)mbtowc(NULL, NULL, 1); /* Reset the shift state. */ /* Write data, expanding unprintable characters. */ p = fmtbuff;