RTEMS | cpukit/librtemscxx: Initialize spolicy in start_thread (CID 1592923) (!1053)
MITHILESH MATTAPALLI (@mithileshm)
gitlab at rtems.org
Sat Feb 7 18:55:17 UTC 2026
MITHILESH MATTAPALLI commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1053#note_142154
I closed this MR because of a git history mix-up, but regarding your point:
You are right that strictly speaking, the current switch logic covers all paths, making this a false positive. However, I am submitting a clean version of this fix as a 'defense in depth' measure. Explicitly initializing `spolicy` ensures the code remains safe even if the switch logic is modified in the future, and it permanently resolves the static analysis warning without needing a suppression list.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1053#note_142154
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/20260207/a035fdf8/attachment.htm>
More information about the bugs
mailing list