RTEMS | Address -Wclobbered warning in two tests (!759)

Joel Sherrill (@joel) gitlab at rtems.org
Thu Oct 2 14:26:16 UTC 2025



Joel Sherrill created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/759

Project:Branches: joel/rtems:address-fix-clobbered-warnings to rtems/rtos/rtems:main
Author:   Joel Sherrill
Assignee: Joel Sherrill
Reviewers: Kinsey Moore and Gedare Bloom


## Summary

Code should not rely on the contents of local variables set before setjmp() after the longjmp() returns. 

Neither use case in these patches was addressed by adding the "returns_twice" attribute to setjmp() in setjmp.h.

Updates #5365.

<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/759
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/20251002/d2444190/attachment.htm>


More information about the bugs mailing list