[PATCH weston 1/2] tablet-shell: Fix compilation warnings

Daniel Stone daniel at fooishbar.org
Mon Jun 18 11:39:56 PDT 2012


Include unistd.h to get fork and execl prototypes, and remove
declarations of two unused variables.

Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
 clients/tablet-shell.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/clients/tablet-shell.c b/clients/tablet-shell.c
index 63ddbb2..0f58d5c 100644
--- a/clients/tablet-shell.c
+++ b/clients/tablet-shell.c
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include <sys/wait.h>
 
 #include "window.h"
@@ -134,8 +135,6 @@ homescreen_draw(struct widget *widget, void *data)
 	struct homescreen *homescreen = data;
 	cairo_surface_t *surface;
 	struct rectangle allocation;
-	cairo_pattern_t *pattern;
-	cairo_matrix_t matrix;
 	cairo_t *cr;
 	struct launcher *launcher;
 	const int rows = 4, columns = 5, icon_width = 128, icon_height = 128;
-- 
1.7.10



More information about the wayland-devel mailing list