From d5d283dbc9ae8d727470975bc8fdd3371468cbdf Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Sat, 18 Dec 2010 23:06:10 +0000 Subject: maint: suppress some clang scan-build warnings * src/pr.c (char_to_clump): Remove a dead store. * src/remove.c (fts_skip_tree): Likewise. * src/sort.c (key_warnings): Likewise. (sort): Suppress an uninitialized pointer warning. --- src/remove.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/remove.c') diff --git a/src/remove.c b/src/remove.c index a473dab95..f7b00c62e 100644 --- a/src/remove.c +++ b/src/remove.c @@ -25,6 +25,7 @@ #include "error.h" #include "euidaccess-stat.h" #include "file-type.h" +#include "ignore-value.h" #include "quote.h" #include "remove.h" #include "root-dev-ino.h" @@ -402,7 +403,7 @@ fts_skip_tree (FTS *fts, FTSENT *ent) { fts_set (fts, ent, FTS_SKIP); /* Ensure that we do not process ENT a second time. */ - ent = fts_read (fts); + ignore_value (fts_read (fts)); } /* Upon unlink failure, or when the user declines to remove ENT, mark -- cgit v1.2.3-70-g09d2