diff options
author | Denis Gorodnichev <[email protected]> | 2014-07-24 10:37:41 +0400 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-25 18:06:24 +0100 |
commit | b25395fab6fe9ee38bc0cd359941d0a825d88451 (patch) | |
tree | e7b6720a543a00495fae1dd1423d652056bedb03 /src/core/testasyncgetprop.c | |
parent | b8d8e52f0effbf76ff909f88932098d4daf4336e (diff) | |
download | marco-b25395fab6fe9ee38bc0cd359941d0a825d88451.tar.bz2 marco-b25395fab6fe9ee38bc0cd359941d0a825d88451.tar.xz |
merge metacity(gtk3) changes
merge metacity(gtk3) changes
fix warnings
clean up unused variables
replace UNUSED_VARIABLE by G_GNUC_UNUSED
Diffstat (limited to 'src/core/testasyncgetprop.c')
-rw-r--r-- | src/core/testasyncgetprop.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/core/testasyncgetprop.c b/src/core/testasyncgetprop.c index 826d7f41..d357dbea 100644 --- a/src/core/testasyncgetprop.c +++ b/src/core/testasyncgetprop.c @@ -81,12 +81,6 @@ print_backtrace (void) } #endif -#ifdef __GNUC__ -#define UNUSED_VARIABLE __attribute__ ((unused)) -#else -#define UNUSED_VARIABLE -#endif - static int error_trap_depth = 0; static int @@ -422,7 +416,6 @@ run_speed_comparison (Display *xdisplay, while ((task = ag_get_next_completed_task (xdisplay))) { - int UNUSED_VARIABLE result; Atom actual_type; int actual_format; unsigned long n_items; @@ -432,12 +425,12 @@ run_speed_comparison (Display *xdisplay, assert (ag_task_have_reply (task)); data = NULL; - result = ag_task_get_reply_and_free (task, - &actual_type, - &actual_format, - &n_items, - &bytes_after, - &data); + ag_task_get_reply_and_free (task, + &actual_type, + &actual_format, + &n_items, + &bytes_after, + &data); if (data) XFree (data); |