mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 21:40:40 +01:00
test: fix two compiler warnings
device.c:596:2: warning: incompatible pointer to integer conversion
initializing 'intmax_t' (aka 'long') with an expression of type 'struct
libinput_device *' [-Wint-conversion]
ck_assert_int_eq(libinput_event_get_device(event),
use ck_assert_ptr_eq() instead
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
e9b160a995
commit
06b5342001
1 changed files with 2 additions and 2 deletions
|
|
@ -593,7 +593,7 @@ START_TEST(device_disable_topsoftbutton)
|
|||
event = libinput_get_event(li);
|
||||
ck_assert_int_eq(libinput_event_get_type(event),
|
||||
LIBINPUT_EVENT_POINTER_BUTTON);
|
||||
ck_assert_int_eq(libinput_event_get_device(event),
|
||||
ck_assert_ptr_eq(libinput_event_get_device(event),
|
||||
trackpoint->libinput_device);
|
||||
ptrevent = libinput_event_get_pointer_event(event);
|
||||
ck_assert_int_eq(libinput_event_pointer_get_button(ptrevent),
|
||||
|
|
@ -605,7 +605,7 @@ START_TEST(device_disable_topsoftbutton)
|
|||
event = libinput_get_event(li);
|
||||
ck_assert_int_eq(libinput_event_get_type(event),
|
||||
LIBINPUT_EVENT_POINTER_BUTTON);
|
||||
ck_assert_int_eq(libinput_event_get_device(event),
|
||||
ck_assert_ptr_eq(libinput_event_get_device(event),
|
||||
trackpoint->libinput_device);
|
||||
ptrevent = libinput_event_get_pointer_event(event);
|
||||
ck_assert_int_eq(libinput_event_pointer_get_button(ptrevent),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue