RTEMS | acpica/namespace/nsaccess.c: Address set but unused warnings (!1198)
Joel Sherrill (@joel)
gitlab at rtems.org
Fri Apr 10 17:09:31 UTC 2026
Joel Sherrill created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1198
Project:Branches: joel/rtems:acpica-namespace-warning to rtems/rtos/rtems:main
Author: Joel Sherrill
Assignee: Joel Sherrill
## Summary
acpica/namespace/nsaccess.c: Address set but unused warnings
GCC 16 flagged this while GCC 15 did not. Because the variable was
used only when ACPI_DEBUG_PRINT() was defined to print, there was
no way to conditionalize the presence of the variable.
Added the "(void) NumCarats" hint to avoid the warning.
## Generative AI
None
<!-- 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/1198
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/20260410/3f50210b/attachment.htm>
More information about the bugs
mailing list