This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit bc386d73b4049b0108e8199cedcfb0398942c4d6
Author: jiangtao16 <[email protected]>
AuthorDate: Thu Sep 18 14:09:00 2025 +0800

    sched/signal: Fix compilation warning uninitialized.
    
    vela caros CI compilation error: 'stop' may be used uninitialized in this 
function.
    
    Signed-off-by: jiangtao16 <[email protected]>
---
 sched/signal/sig_timedwait.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sched/signal/sig_timedwait.c b/sched/signal/sig_timedwait.c
index 02a8b1131ae..d3f63506694 100644
--- a/sched/signal/sig_timedwait.c
+++ b/sched/signal/sig_timedwait.c
@@ -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))
     {

Reply via email to