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
|
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||||
union sigval value;
|
union sigval value;
|
||||||
#endif
|
#endif
|
||||||
int ret;
|
|
||||||
|
|
||||||
DEBUGASSERT(upper != NULL);
|
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
|
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||||
value.sival_ptr = upper->arg;
|
value.sival_ptr = upper->arg;
|
||||||
ret = sigqueue(upper->pid, upper->signo, value);
|
(void)sigqueue(upper->pid, upper->signo, value);
|
||||||
#else
|
#else
|
||||||
ret = sigqueue(upper->pid, upper->signo, upper->arg);
|
(void)sigqueue(upper->pid, upper->signo, upper->arg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
#include <nuttx/irq.h>
|
#include <nuttx/irq.h>
|
||||||
#include <nuttx/fs/ioctl.h>
|
#include <nuttx/fs/ioctl.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
#ifdef CONFIG_TIMER
|
#ifdef CONFIG_TIMER
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user