diff --git a/libs/libc/unistd/lib_alarm.c b/libs/libc/unistd/lib_alarm.c index 40a0fc3d812..60631103b40 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 c5a5965aaf6..a19a6c6ed04 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;