Files
rtems/cpukit
M Mithilesh 2e08b935b4 cpukit/librtemscxx: Initialize spolicy in start_thread
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
2026-02-27 07:27:14 -06:00
..
2026-02-05 09:22:58 -06:00
2026-02-05 09:28:55 -06:00
2026-02-05 14:43:37 -07:00
2026-02-05 09:29:52 -06:00
2026-02-05 14:00:25 -06:00
2026-02-05 09:26:13 -06:00
2026-02-05 09:31:49 -06:00
2026-02-12 12:17:04 -06:00
2026-02-05 12:14:40 -07:00
2026-02-05 09:27:08 -06:00
2026-02-12 12:17:04 -06:00