comparison 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
comparison
equal deleted inserted replaced
934:a7423b680bb0 935:6fb534830d8f
34 // For C++ 34 // For C++
35 static char nostdinc_plus[] = "-nostdinc++"; 35 static char nostdinc_plus[] = "-nostdinc++";
36 36
37 // gcc 4.3 generates tons of spurious warnings which you can't shut off. 37 // gcc 4.3 generates tons of spurious warnings which you can't shut off.
38 38
39 #define xasprintf(...) do {int ignore=asprintf(__VA_ARGS__);} while(0) 39 #define xasprintf(...) do {(void)asprintf(__VA_ARGS__);} while(0)
40 40
41 // #define GIMME_AN_S for wrapper to support --enable-shared toolchain. 41 // #define GIMME_AN_S for wrapper to support --enable-shared toolchain.
42 42
43 #ifdef GIMME_AN_S 43 #ifdef GIMME_AN_S
44 #define ADD_GCC_S() \ 44 #define ADD_GCC_S() \