changeset 12843:ef0538387b0d

closein-tests: silence compiler warning * tests/test-closein.c (main): Ignore fread result. * modules/closein-tests (Depends-on): Add ignore-value. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Sat, 30 Jan 2010 07:44:38 -0700
parents b2bf8684a2db
children aaa284caae61
files ChangeLog modules/closein-tests tests/test-closein.c
diffstat 3 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Jan 30 07:37:11 2010 -0700
+++ b/ChangeLog	Sat Jan 30 07:44:38 2010 -0700
@@ -1,5 +1,9 @@
 2010-02-01  Eric Blake  <ebb9@byu.net>
 
+	closein-tests: silence compiler warning
+	* tests/test-closein.c (main): Ignore fread result.
+	* modules/closein-tests (Depends-on): Add ignore-value.
+
 	tests: silence warning about system return
 	* tests/test-areadlink-with-size.c (main): Ignore system result.
 	* tests/test-areadlink.c (main): Likewise.
--- a/modules/closein-tests	Sat Jan 30 07:37:11 2010 -0700
+++ b/modules/closein-tests	Sat Jan 30 07:44:38 2010 -0700
@@ -4,6 +4,7 @@
 
 Depends-on:
 binary-io
+ignore-value
 
 configure.ac:
 
--- a/tests/test-closein.c	Sat Jan 30 07:37:11 2010 -0700
+++ b/tests/test-closein.c	Sat Jan 30 07:44:38 2010 -0700
@@ -26,6 +26,7 @@
 #include <unistd.h>
 
 #include "binary-io.h"
+#include "ignore-value.h"
 
 char *program_name;
 
@@ -47,6 +48,6 @@
     close (0);
 
   if (argc > 1)
-    fread (buf, 1, 6, stdin);
+    ignore_value (fread (buf, 1, 6, stdin));
   return 0;
 }