Central | spec/rtems: fix clobbered local in task restart validation (!13)

Joel Sherrill (@joel) gitlab at rtems.org
Thu Oct 9 16:05:40 UTC 2025




Joel Sherrill commented on a discussion on spec/rtems/task/req/restart.yml: https://gitlab.rtems.org/rtems/prequal/rtems-central/-/merge_requests/13#note_134069

 >            SetFatalHandler( ResumeThreadDispatch, ctx );
 >            cpu_self = _Thread_Dispatch_disable();
 >  
 > -          if ( setjmp( ctx->thread_dispatch_context ) == 0 ) {
 > +          int jumped = setjmp( ctx->thread_dispatch_context );

Sorry. I read the diff incorrectly. It's ok since the cpu_self variable isn't used.

And we do not scan the tests with Coverity. Just add -Wclobbered to optwarn.yml and turn off -Werror.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/prequal/rtems-central/-/merge_requests/13#note_134069
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20251009/254fe35c/attachment-0001.htm>


More information about the bugs mailing list