diff options
author | Scott Balneaves <[email protected]> | 2012-11-20 22:50:33 -0600 |
---|---|---|
committer | Scott Balneaves <[email protected]> | 2012-11-20 22:50:33 -0600 |
commit | 3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6 (patch) | |
tree | 620d5fa2f8be7c9a65313c6a238cc349e6faaad4 /src/compositor/compositor-xrender.c | |
parent | d72b5f2a0bbd035a98979c3519de90a194f67e05 (diff) | |
download | marco-3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6.tar.bz2 marco-3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6.tar.xz |
Fix deprecations and compile warnings. Clean compile
Diffstat (limited to 'src/compositor/compositor-xrender.c')
-rw-r--r-- | src/compositor/compositor-xrender.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c index f013eac8..805002e3 100644 --- a/src/compositor/compositor-xrender.c +++ b/src/compositor/compositor-xrender.c @@ -62,6 +62,12 @@ #define USE_IDLE_REPAINT 1 +#ifdef __GNUC__ +#define UNUSED_VARIABLE __attribute__ ((unused)) +#else +#define UNUSED_VARIABLE +#endif + #ifdef HAVE_COMPOSITE_EXTENSIONS static inline gboolean composite_at_least_version (MetaDisplay *display, @@ -1131,8 +1137,8 @@ paint_windows (MetaScreen *screen, MetaCompScreen *info = meta_screen_get_compositor_data (screen); Display *xdisplay = meta_display_get_xdisplay (display); GList *index, *last; - int screen_width, screen_height, screen_number; - Window xroot; + int screen_width, screen_height, UNUSED_VARIABLE screen_number; + Window UNUSED_VARIABLE xroot; MetaCompWindow *cw; XserverRegion paint_region, desktop_region; |