projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f28eb5e
)
Fix compiler warnings for missing initializers
author
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 2 Jul 2014 23:32:02 +0000
(09:32 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Wed, 2 Jul 2014 23:59:43 +0000
(09:59 +1000)
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 <peter.hutterer@who-t.net>
src/timer.c
patch
|
blob
|
history
diff --git
a/src/timer.c
b/src/timer.c
index
3076bb7
..
ad0fd7c
100644
(file)
--- 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) {