RTEMS | psignalclearsignals.c: Eliminate used before initialized warning (!469)

Kinsey Moore (@opticron) gitlab at rtems.org
Tue May 6 18:42:41 UTC 2025




Kinsey Moore commented on a discussion on cpukit/posix/src/psignalclearsignals.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/469#note_122377

 > +{
 > +  bool                 retval;
 > +  Thread_queue_Context  queue_context;
 >  
 >    if ( do_signals_acquire_release ) {
 > -    _POSIX_signals_Release( &queue_context );
 > +    _Thread_queue_Context_initialize( &queue_context );
 > +    _POSIX_signals_Acquire( &queue_context );
 > +    retval = _POSIX_signals_Clear_signals_helper(
 > +      api,
 > +      signo,
 > +      info,
 > +      is_global,
 > +      check_blocked
 > +    );
 > +  _POSIX_signals_Release( &queue_context );

Good now.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/469#note_122377
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/20250506/b79e81b8/attachment.htm>


More information about the bugs mailing list