Mercurial > hg > aboriginal
diff sources/toys/ccwrap.c @ 935:6fb534830d8f
Silence compiler warnings: unused variable ?ignore?
author | Marc Andre Tanner <mat@brain-dump.org> |
---|---|
date | Fri, 11 Dec 2009 22:34:39 +0100 |
parents | 809d705262f8 |
children | f2b4d7297c9d |
line wrap: on
line diff
--- a/sources/toys/ccwrap.c Wed Dec 16 15:22:21 2009 -0600 +++ b/sources/toys/ccwrap.c Fri Dec 11 22:34:39 2009 +0100 @@ -36,7 +36,7 @@ // gcc 4.3 generates tons of spurious warnings which you can't shut off. -#define xasprintf(...) do {int ignore=asprintf(__VA_ARGS__);} while(0) +#define xasprintf(...) do {(void)asprintf(__VA_ARGS__);} while(0) // #define GIMME_AN_S for wrapper to support --enable-shared toolchain.