RTEMS | Address unused parameter warnings (!749)

Kinsey Moore (@opticron) gitlab at rtems.org
Thu Sep 25 16:16:26 UTC 2025




Kinsey Moore started a new discussion on cpukit/include/rtems/score/threadimpl.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/749#note_133239

 >  )
 >  {
 >    _ISR_lock_Acquire( &the_thread->Wait.Lock.Default, lock_context );
 > +#ifndef RTEMS_SMP
 > +   (void) the_thread;
 > +#endif

The `#else` branch implementation of `_ISR_lock_Acquire` already has `(void)_context;`; could it not also have `(void)_lock;` which would solve this problem?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/749#note_133239
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/20250925/df47aaba/attachment.htm>


More information about the bugs mailing list