From: ellson Date: Fri, 30 Dec 2005 13:53:03 +0000 (+0000) Subject: casting int to void to suppress unused return value doesn't work with Sun's compiler X-Git-Tag: LAST_LIBGRAPH~32^2~6901 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77d77c5f438a55857163a4b2d15e0b4b27bd19eb;p=graphviz casting int to void to suppress unused return value doesn't work with Sun's compiler --- diff --git a/lib/graph/agxbuf.h b/lib/graph/agxbuf.h index e696a5bd9..1f1cfa333 100644 --- a/lib/graph/agxbuf.h +++ b/lib/graph/agxbuf.h @@ -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: