Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
smartypants: Silence the warning with a (void) cast
  • Loading branch information
vmg committed Nov 22, 2011
1 parent 9f379cc commit 23d4fcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/smartypants.c
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 23d4fcd

Please sign in to comment.