From 23d4fcda111fe4852a0861378a81da19406fd629 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 18 Nov 2011 04:31:29 +0100 Subject: [PATCH] smartypants: Silence the warning with a (void) cast --- examples/smartypants.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/smartypants.c b/examples/smartypants.c index b1f9ee92..4840703b 100644 --- a/examples/smartypants.c +++ b/examples/smartypants.c @@ -32,7 +32,6 @@ main(int argc, char **argv) { struct buf *ib, *ob; size_t ret; - int fwrite_ret; FILE *in = stdin; /* opening the file if given from the command line */ @@ -61,7 +60,7 @@ main(int argc, char **argv) sdhtml_smartypants(ob, ib->data, ib->size); /* writing the result to stdout */ - fwrite_ret = fwrite(ob->data, 1, ob->size, stdout); + (void)fwrite(ob->data, 1, ob->size, stdout); /* cleanup */ bufrelease(ib);