RTEMS | libdebugger/rtems-debugger-arm.c: Warning for using defined() in expansion (!719)

Joel Sherrill (@joel) gitlab at rtems.org
Thu Sep 11 23:28:39 UTC 2025



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

Project:Branches: joel/rtems:issue-5328-rtems-debugger-arm.c to rtems/rtos/rtems:main
Author:   Joel Sherrill
Assignee: Joel Sherrill
Reviewers: Chris Johns and Kinsey Moore


## Summary

libdebugger/rtems-debugger-arm.c: Warning for using defined() in expansion

The definition of NEEDS_THUMB_SWITCH was not portable and flagged by
the GCC -Wexpansion-to-defined. It is not portable to expand a macro
which uses futher cpp directives.

Closes #5328.


<!-- 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/719
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/20250911/57b82676/attachment-0001.htm>


More information about the bugs mailing list