mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-19 17:20:59 +08:00
CID 1592923: Uninitialized scalar variable. The 'spolicy' variable in thread::start_thread was declared without initialization. Although the subsequent switch statement assigns a value, Coverity flagged this as a risk. This patch initializes 'spolicy' to SCHED_FIFO at declaration. SCHED_FIFO was chosen because it matches the existing 'default' case in the switch statement, ensuring consistency. cpukit/librtemscxx: Initialize spolicy in start_thread (CID 1592923) Restore default block for switch statement consistency