Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

smartypants: Silence the warning with a (void) cast

  • Loading branch information...
commit 23d4fcda111fe4852a0861378a81da19406fd629 1 parent 9f379cc
@vmg authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.