Fix warnings
This commit is contained in:
parent
8e029f019b
commit
5363d0619a
|
@ -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;
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
#include <nuttx/irq.h>
|
||||
#include <nuttx/fs/ioctl.h>
|
||||
#include <stdbool.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef CONFIG_TIMER
|
||||
|
||||
|
|
Loading…
Reference in New Issue