Skip to content

Commit

Permalink
Merge pull request msteveb#3 from andreas-kupries/void-cast-clarifica…
Browse files Browse the repository at this point in the history
…tion

Clarify the comment at the definition of IGNORE_RC.
  • Loading branch information
msteveb committed Feb 15, 2013
2 parents 18c1986 + 9748ca8 commit 1b94638
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion linenoise.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ static void linenoiseAtExit(void) {
linenoiseHistoryFree();
}

/* gcc/glibc insists that we care about the return code of write! */
/* gcc/glibc insists that we care about the return code of write!
* Clarification: This means that a void-cast like "(void) (EXPR)"
* does not work.
*/
#define IGNORE_RC(EXPR) if (EXPR) {}

/* This is fdprintf() on some systems, but use a different
Expand Down

0 comments on commit 1b94638

Please sign in to comment.