From 5ab2bcad6f8cae7cc249a6294e81a6ad346931b5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 3 Jul 2014 09:32:02 +1000 Subject: [PATCH] Fix compiler warnings for missing initializers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit timer.c: In function ‘libinput_timer_arm_timer_fd’: timer.c:48: warning: missing initializer timer.c:48: warning: (near initialization for ‘its.it_value.tv_nsec’) Signed-off-by: Peter Hutterer --- src/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer.c b/src/timer.c index 3076bb7a..ad0fd7c8 100644 --- a/src/timer.c +++ b/src/timer.c @@ -45,7 +45,7 @@ libinput_timer_arm_timer_fd(struct libinput *libinput) { int r; struct libinput_timer *timer; - struct itimerspec its = { { 0 }, { 0 } }; + struct itimerspec its = { { 0, 0 }, { 0, 0 } }; uint64_t earliest_expire = UINT64_MAX; list_for_each(timer, &libinput->timer.list, link) { -- 2.34.1