mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
sched/signal: Fix compilation warning uninitialized.
vela caros CI compilation error: 'stop' may be used uninitialized in this function. Signed-off-by: jiangtao16 <jiangtao16@xiaomi.com>
This commit is contained in:
@@ -186,8 +186,8 @@ int nxsig_clockwait(int clockid, int flags,
|
||||
{
|
||||
FAR struct tcb_s *rtcb;
|
||||
irqstate_t iflags;
|
||||
clock_t expect = 0;
|
||||
clock_t stop;
|
||||
clock_t expect = 0u;
|
||||
clock_t stop = 0u;
|
||||
|
||||
if (rqtp && (rqtp->tv_nsec < 0 || rqtp->tv_nsec >= 1000000000))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user