diff --git a/drivers/timers/timer.c b/drivers/timers/timer.c index 80c76a1b62..667be5276d 100644 --- a/drivers/timers/timer.c +++ b/drivers/timers/timer.c @@ -131,7 +131,6 @@ static bool timer_notifier(FAR uint32_t *next_interval_us, FAR void *arg) #ifdef CONFIG_CAN_PASS_STRUCTS union sigval value; #endif - int ret; DEBUGASSERT(upper != NULL); @@ -139,9 +138,9 @@ static bool timer_notifier(FAR uint32_t *next_interval_us, FAR void *arg) #ifdef CONFIG_CAN_PASS_STRUCTS value.sival_ptr = upper->arg; - ret = sigqueue(upper->pid, upper->signo, value); + (void)sigqueue(upper->pid, upper->signo, value); #else - ret = sigqueue(upper->pid, upper->signo, upper->arg); + (void)sigqueue(upper->pid, upper->signo, upper->arg); #endif return true; diff --git a/include/nuttx/timers/timer.h b/include/nuttx/timers/timer.h index a89369d5df..ab78f5ea97 100644 --- a/include/nuttx/timers/timer.h +++ b/include/nuttx/timers/timer.h @@ -46,6 +46,7 @@ #include #include #include +#include #ifdef CONFIG_TIMER