From f8801e1bd8484b797c629cb7f87249d0758326d6 Mon Sep 17 00:00:00 2001 From: Ouss4 Date: Thu, 20 Feb 2020 00:39:54 +0000 Subject: [PATCH] libs/libc/unistd/lib_alarm.c,sched/timer/timer_getitimer.c: Silence a warning with struct initialization. --- libs/libc/unistd/lib_alarm.c | 6 ++++-- sched/timer/timer_getitimer.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/libc/unistd/lib_alarm.c b/libs/libc/unistd/lib_alarm.c index 40a0fc3d81..60631103b4 100644 --- a/libs/libc/unistd/lib_alarm.c +++ b/libs/libc/unistd/lib_alarm.c @@ -70,12 +70,14 @@ unsigned int alarm(unsigned int seconds) { struct itimerval value = { - 0, 0 + {0, 0}, + {0, 0} }; struct itimerval ovalue = { - 0, 0 + {0, 0}, + {0, 0} }; value.it_value.tv_sec = seconds; diff --git a/sched/timer/timer_getitimer.c b/sched/timer/timer_getitimer.c index c5a5965aaf..a19a6c6ed0 100644 --- a/sched/timer/timer_getitimer.c +++ b/sched/timer/timer_getitimer.c @@ -86,7 +86,8 @@ int getitimer(int which, FAR struct itimerval *value) FAR struct tcb_s *rtcb = this_task(); struct itimerspec spec = { - 0, 0 + {0, 0}, + {0, 0} }; int ret = OK;