mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-23 21:29:37 +08:00
This code was flagged as maybe-uninitialized when compiling at -Og. The underlying problem was functional code in an assert(). If compiled with asserts disabled, there would have been no mutex lock/unlock. Changed the macros to obtain and release the mutex independent of assert() being enabled or not and switched to using the RTEMS assert _Assert() which lets this check follow the RTEMS_DEBUG setting.