closein-tests: silence compiler warning
authorEric Blake <ebb9@byu.net>
Sat, 30 Jan 2010 14:44:38 +0000 (07:44 -0700)
committerEric Blake <ebb9@byu.net>
Mon, 1 Feb 2010 13:24:58 +0000 (06:24 -0700)
* tests/test-closein.c (main): Ignore fread result.
* modules/closein-tests (Depends-on): Add ignore-value.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
modules/closein-tests
tests/test-closein.c

index b3c6f3f..a812234 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 5c2126e..2f3f689 100644 (file)
@@ -4,6 +4,7 @@ tests/test-closein.c
 
 Depends-on:
 binary-io
+ignore-value
 
 configure.ac:
 
index bde436e..6b99b18 100644 (file)
@@ -26,6 +26,7 @@
 #include <unistd.h>
 
 #include "binary-io.h"
+#include "ignore-value.h"
 
 char *program_name;
 
@@ -47,6 +48,6 @@ main (int argc, char **argv)
     close (0);
 
   if (argc > 1)
-    fread (buf, 1, 6, stdin);
+    ignore_value (fread (buf, 1, 6, stdin));
   return 0;
 }