__LINE__ ); \
exit( 1 ); }
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+# define ATTR_UNUSED __attribute__((__unused__))
+#else
+# define ATTR_UNUSED /* empty */
+#endif
class A {public:
/* An uncollectable class. */
return (void*) ~ i;}
#ifdef MSWIN32
-int APIENTRY WinMain(
- HINSTANCE instance, HINSTANCE prev, LPSTR cmd, int cmdShow )
+int APIENTRY WinMain( HINSTANCE instance ATTR_UNUSED,
+ HINSTANCE prev ATTR_UNUSED, LPSTR cmd, int cmdShow ATTR_UNUSED )
{
int argc;
char* argv[ 3 ];
int *x = gc_allocator<int>().allocate(1);
int *xio;
xio = gc_allocator_ignore_off_page<int>().allocate(1);
+ (void)xio;
int **xptr = traceable_allocator<int *>().allocate(1);
# else
int *x = (int *)gc_alloc::allocate(sizeof(int));
D* d;
F* f;
d = ::new (USE_GC, D::CleanUp, (void*)(GC_word)i) D( i );
+ (void)d;
f = new F;
+ (void)f;
if (0 == i % 10) delete c;}
/* Allocate a very large number of collectable As and Bs and
for (i = 0; i < 1000000; i++) {
A* a;
a = new (USE_GC) A( i );
+ (void)a;
B* b = new B( i );
b = new (USE_GC) B( i );
if (0 == i % 10) {