mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-12 13:29:55 -05:00
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:
parent
8335568d07
commit
00439617f3
7 changed files with 9 additions and 24 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue