]> granicus.if.org Git - graphviz/commitdiff
casting int to void to suppress unused return value doesn't work with Sun's compiler
authorellson <devnull@localhost>
Fri, 30 Dec 2005 13:53:03 +0000 (13:53 +0000)
committerellson <devnull@localhost>
Fri, 30 Dec 2005 13:53:03 +0000 (13:53 +0000)
lib/graph/agxbuf.h

index e696a5bd9fd1e8668cc28aabf36c3931cad9da6a..1f1cfa333366d47528b0d4c01089edb0ad40cdbb 100644 (file)
@@ -67,7 +67,7 @@ extern "C" {
  * Add character to buffer.
  *  int agxbputc(agxbuf*, char)
  */
-#define agxbputc(X,C) (void)((((X)->ptr >= (X)->eptr) ? agxbmore(X,1) : 0), \
+#define agxbputc(X,C) ((((X)->ptr >= (X)->eptr) ? agxbmore(X,1) : 0), \
           (int)(*(X)->ptr++ = ((unsigned char)C)))
 
 /* agxbuse: