From 3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6 Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Tue, 20 Nov 2012 22:50:33 -0600 Subject: Fix deprecations and compile warnings. Clean compile --- src/core/testasyncgetprop.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/core/testasyncgetprop.c') diff --git a/src/core/testasyncgetprop.c b/src/core/testasyncgetprop.c index ed044009..25490cb8 100644 --- a/src/core/testasyncgetprop.c +++ b/src/core/testasyncgetprop.c @@ -81,6 +81,12 @@ print_backtrace (void) } #endif +#ifdef __GNUC__ +#define UNUSED_VARIABLE __attribute__ ((unused)) +#else +#define UNUSED_VARIABLE +#endif + static int error_trap_depth = 0; static int @@ -416,7 +422,7 @@ run_speed_comparison (Display *xdisplay, while ((task = ag_get_next_completed_task (xdisplay))) { - int result; + int UNUSED_VARIABLE result; Atom actual_type; int actual_format; unsigned long n_items; -- cgit v1.2.1