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:
jiangtao16
2025-09-18 14:09:00 +08:00
committed by Xiang Xiao
parent 3491cef8a8
commit bc386d73b4
+2 -2
View File
@@ -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))
{