Skip to content

Commit

Permalink
smartypants: Silence the warning with a (void) cast
Browse files Browse the repository at this point in the history
  • 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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ main(int argc, char **argv)
{ {
struct buf *ib, *ob; struct buf *ib, *ob;
size_t ret; size_t ret;
int fwrite_ret;
FILE *in = stdin; FILE *in = stdin;


/* opening the file if given from the command line */ /* 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); sdhtml_smartypants(ob, ib->data, ib->size);


/* writing the result to stdout */ /* writing the result to stdout */
fwrite_ret = fwrite(ob->data, 1, ob->size, stdout); (void)fwrite(ob->data, 1, ob->size, stdout);


/* cleanup */ /* cleanup */
bufrelease(ib); bufrelease(ib);
Expand Down

0 comments on commit 23d4fcd

Please sign in to comment.