RTEMS | cpukit/include/rtems/score/basedefs.h: Add RTEMS_FALL_THROUGH() (!730)
Joel Sherrill (@joel)
gitlab at rtems.org
Thu Sep 18 17:19:13 UTC 2025
Joel Sherrill created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/730
Project:Branches: joel/rtems:fix-implicit-fallthrough-warnings to rtems/rtos/rtems:main
Author: Joel Sherrill
Assignee: Joel Sherrill
Reviewer: Kinsey Moore
## Summary
cpukit/include/rtems/score/basedefs.h: Add RTEMS_FALL_THROUGH()
The RTEMS_FALL_THROUGH macro was needed to provide a portable
way to annotate that a case in a switch statement intentionally
does not have a break statement. It is known as "falling through"
and a common bug.
Adding this macro enabled addressing -Wimplicit-fallthrough warnings.
<!-- 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/730
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/20250918/7905f1d3/attachment.htm>
More information about the bugs
mailing list