From b3296a25e1aa93be60c5ca13f0211ba98e6a3d85 Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Tue, 11 Sep 2012 19:50:28 +0900 Subject: [PATCH] Remove dead assignment that Clang Static Analyzer pointed out. --- tar/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3