From 06b534200178eec62790775ae1f4a1655ff108a1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 11 Dec 2014 16:30:03 +1000 Subject: [PATCH] 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 --- test/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/device.c b/test/device.c index 16bb99c9..76486f03 100644 --- a/test/device.c +++ b/test/device.c @@ -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),