diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-06-25 16:51:57 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-06-25 16:51:57 -0400 |
commit | 2d6b7c118b2af194a370fd1bf5c264499f1e37cc (patch) | |
tree | 4890915463bcb8e64f8d18714051beeac666bb86 | |
parent | 94adf6cb9e14b91cd98db0174f6a1fbe375b1184 (diff) |
Fix some warnings
-rw-r--r-- | clients/window.c | 6 | ||||
-rw-r--r-- | wayland-client.h | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/clients/window.c b/clients/window.c index 2d88512..8efa831 100644 --- a/clients/window.c +++ b/clients/window.c @@ -214,12 +214,9 @@ static void window_draw_decorations(struct window *window) { cairo_t *cr; - int border = 2, radius = 5; cairo_text_extents_t extents; - cairo_pattern_t *pattern, *gradient, *outline, *bright, *dim; + cairo_pattern_t *outline, *bright, *dim; int width, height; - int shadow_dx = 4, shadow_dy = 4; - cairo_matrix_t matrix; window->cairo_surface = display_create_surface(window->display, &window->allocation); @@ -771,7 +768,6 @@ static const char socket_name[] = "\0wayland"; static void display_render_frame(struct display *d) { - struct rectangle r = { 0, 0, 128, 128 }; int radius = 8; cairo_t *cr; diff --git a/wayland-client.h b/wayland-client.h index dbe8970..ca4a515 100644 --- a/wayland-client.h +++ b/wayland-client.h @@ -23,6 +23,8 @@ #ifndef _WAYLAND_CLIENT_H #define _WAYLAND_CLIENT_H +#include <wayland-util.h> + #ifdef __cplusplus extern "C" { #endif |