]> granicus.if.org Git - sudo/commitdiff
Quiet gcc warnings on glibc systems that use warn_unused_result for
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Aug 2012 13:08:49 +0000 (09:08 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 24 Aug 2012 13:08:49 +0000 (09:08 -0400)
fwrite().

--HG--
branch : 1.7

check.c

diff --git a/check.c b/check.c
index 64db494943dc771f18e9e89040ee078454c6651f..8067e2b48a62274946303bd4c76a294ea06e666b 100644 (file)
--- a/check.c
+++ b/check.c
@@ -216,7 +216,7 @@ lecture(status)
 
     if (def_lecture_file && (fp = fopen(def_lecture_file, "r")) != NULL) {
        while ((nread = fread(buf, sizeof(char), sizeof(buf), fp)) != 0)
-           fwrite(buf, nread, 1, stderr);
+           ignore_result(fwrite(buf, nread, 1, stderr));
        fclose(fp);
     } else {
        (void) fputs("\n\