From: Eric Blake Date: Sat, 30 Jan 2010 14:44:38 +0000 (-0700) Subject: closein-tests: silence compiler warning X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94e727094e8d312df85d93a3f9f98cb43a5abb1d;p=pspp 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 --- 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; }