changeset 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 a7423b680bb0
children eb7e1087f0ee
files sources/toys/ccwrap.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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.