Permalink
Browse files

smartypants: Silence the warning with a (void) cast

  • Loading branch information...
1 parent 9f379cc commit 23d4fcda111fe4852a0861378a81da19406fd629 @vmg committed Nov 18, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 examples/smartypants.c
View
3 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);

0 comments on commit 23d4fcd

Please sign in to comment.