summaryrefslogtreecommitdiff
path: root/src/core/testasyncgetprop.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-11-20 22:50:33 -0600
committerScott Balneaves <[email protected]>2012-11-20 22:50:33 -0600
commit3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6 (patch)
tree620d5fa2f8be7c9a65313c6a238cc349e6faaad4 /src/core/testasyncgetprop.c
parentd72b5f2a0bbd035a98979c3519de90a194f67e05 (diff)
downloadmarco-3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6.tar.bz2
marco-3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6.tar.xz
Fix deprecations and compile warnings. Clean compile
Diffstat (limited to 'src/core/testasyncgetprop.c')
-rw-r--r--src/core/testasyncgetprop.c8
1 files changed, 7 insertions, 1 deletions
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;