From 94e727094e8d312df85d93a3f9f98cb43a5abb1d Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Sat, 30 Jan 2010 07:44:38 -0700 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ modules/closein-tests | 1 + tests/test-closein.c | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b3c6f3fbca..a81223454d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-02-01 Eric Blake + 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. diff --git a/modules/closein-tests b/modules/closein-tests index 5c2126e9f4..2f3f6894fe 100644 --- a/modules/closein-tests +++ b/modules/closein-tests @@ -4,6 +4,7 @@ tests/test-closein.c Depends-on: binary-io +ignore-value configure.ac: diff --git a/tests/test-closein.c b/tests/test-closein.c index bde436e6da..6b99b1868f 100644 --- a/tests/test-closein.c +++ b/tests/test-closein.c @@ -26,6 +26,7 @@ #include #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; } -- 2.30.2