Fix warnings

This commit is contained in:
Sebastien Lorquet 2016-11-18 15:26:08 +01:00
parent 8e029f019b
commit 5363d0619a
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -46,6 +46,7 @@
#include <nuttx/irq.h>
#include <nuttx/fs/ioctl.h>
#include <stdbool.h>
#include <sys/types.h>
#ifdef CONFIG_TIMER