]> git.lizzy.rs Git - linenoise.git/commitdiff
Merge pull request #3 from andreas-kupries/void-cast-clarification
authorSteve Bennett <steveb@workware.net.au>
Fri, 15 Feb 2013 02:29:34 +0000 (18:29 -0800)
committerSteve Bennett <steveb@workware.net.au>
Fri, 15 Feb 2013 02:29:34 +0000 (18:29 -0800)
Clarify the comment at the definition of IGNORE_RC.

linenoise.c

index 5e3216e4591d719df286f4ce4c886fcb17232cce..036e25ed4c645a3d8d9ae041dfc5c590b760a8b0 100644 (file)
@@ -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