diff --git a/libs/libc/unistd/lib_alarm.c b/libs/libc/unistd/lib_alarm.c index 200931de850..40a0fc3d812 100644 --- a/libs/libc/unistd/lib_alarm.c +++ b/libs/libc/unistd/lib_alarm.c @@ -70,10 +70,12 @@ unsigned int alarm(unsigned int seconds) { struct itimerval value = { + 0, 0 }; struct itimerval ovalue = { + 0, 0 }; value.it_value.tv_sec = seconds; diff --git a/mm/mm_heap/mm_addfreechunk.c b/mm/mm_heap/mm_addfreechunk.c index b40996642e4..1a2adee1165 100644 --- a/mm/mm_heap/mm_addfreechunk.c +++ b/mm/mm_heap/mm_addfreechunk.c @@ -60,13 +60,14 @@ void mm_addfreechunk(FAR struct mm_heap_s *heap, FAR struct mm_freenode_s *node) { FAR struct mm_freenode_s *next; FAR struct mm_freenode_s *prev; + int ndx; DEBUGASSERT(node->size >= SIZEOF_MM_FREENODE); DEBUGASSERT((node->preceding & MM_ALLOC_BIT) == 0); /* Convert the size to a nodelist index */ - int ndx = mm_size2ndx(node->size); + ndx = mm_size2ndx(node->size); /* Now put the new node into the next */ diff --git a/sched/timer/timer_getitimer.c b/sched/timer/timer_getitimer.c index c920dbea08b..c5a5965aaf6 100644 --- a/sched/timer/timer_getitimer.c +++ b/sched/timer/timer_getitimer.c @@ -86,6 +86,7 @@ int getitimer(int which, FAR struct itimerval *value) FAR struct tcb_s *rtcb = this_task(); struct itimerspec spec = { + 0, 0 }; int ret = OK;