0fb0b5c
From 690d4bd9f29a805999a3ce4651dac9585ccc9917 Mon Sep 17 00:00:00 2001
0fb0b5c
From: Kamil Dudka <kdudka@redhat.com>
0fb0b5c
Date: Wed, 11 May 2011 16:46:57 +0200
497096c
Subject: [PATCH] findutils-4.5.7-warnings.patch
0fb0b5c
0fb0b5c
---
412732a
 xargs/xargs.c | 3 ++-
412732a
 1 file changed, 2 insertions(+), 1 deletion(-)
0fb0b5c
0fb0b5c
diff --git a/xargs/xargs.c b/xargs/xargs.c
0fb0b5c
index 5e373f2..c0a8676 100644
0fb0b5c
--- a/xargs/xargs.c
0fb0b5c
+++ b/xargs/xargs.c
497096c
@@ -1299,7 +1299,8 @@ xargs_do_exec (struct buildcmd_control *ctl, void *usercontext, int argc, char *
0fb0b5c
 		 * utility if we run it, for POSIX compliance on the
0fb0b5c
 		 * handling of exit values.
0fb0b5c
 		 */
0fb0b5c
-		write (fd[1], &errno, sizeof (int));
0fb0b5c
+		int sink = write (fd[1], &errno, sizeof (int));
0fb0b5c
+		(void) sink;
0fb0b5c
 	      }
0fb0b5c
 
0fb0b5c
 	    close (fd[1]);
0fb0b5c
-- 
0fb0b5c
1.7.1
0fb0b5c