Fix new gcc 4.6 warnings

simple-client.c:156:10: warning: variable ‘ar’ set but not used [-Wunused-but-set-variable]

etc.
This commit is contained in:
Kristian Høgsberg 2011-01-25 15:16:01 -05:00
parent 8335568d07
commit 00439617f3
7 changed files with 9 additions and 24 deletions

View file

@ -865,15 +865,13 @@ window_handle_motion(void *data, struct wl_input_device *input_device,
{
struct input *input = data;
struct window *window = input->pointer_focus;
int location, pointer = POINTER_LEFT_PTR;
int pointer = POINTER_LEFT_PTR;
input->x = x;
input->y = y;
input->sx = sx;
input->sy = sy;
location = get_pointer_location(window, input->sx, input->sy);
if (window->motion_handler)
pointer = (*window->motion_handler)(window, input, time,
x, y, sx, sy,