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_134066 > SetFatalHandler( ResumeThreadDispatch, ctx ); > cpu_self = _Thread_Dispatch_disable(); > > - if ( setjmp( ctx->thread_dispatch_context ) == 0 ) { > + int jumped = setjmp( ctx->thread_dispatch_context ); The fall through warning is not yet enabled in optwarn*.yml in the RTEMS git code. You need to enable it yourself. And this code now should have the warning again because cpu_self is set before the setjmp() and used after. That's the crux of Wclobbered. If it can be made static, that will also resolve it. -- View it on GitLab: https://gitlab.rtems.org/rtems/prequal/rtems-central/-/merge_requests/13#note_134066 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
