RTEMS | libdl: Fix sign comparison warning in rtl-archive.c (!878)

Keerat Malhotra (@keerat_malhotra) gitlab at rtems.org
Thu Dec 18 12:57:46 UTC 2025



Keerat  Malhotra created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/878

Project:Branches: keerat_malhotra/rtems:libdl-warning-fix to rtems/rtos/rtems:main
Author:   Keerat  Malhotra




**Context:** 
While investigating Issue #5404 on the `sparc/leon3` BSP, I discovered a new warning in `rtl-archive.c`[Warning](/uploads/74494597df6fccbb717a909515e6ce73/warning.txt) that was not mentioned in this [libdl-Wsign-compare.txt](/uploads/45b87ceb52d8ed5f435cb4bdf704ceeb/libdl-Wsign-compare.txt) provided by @joel 

**The Fix:** 
As mentioned in #5404 , I turned off Werror and other warnings and turned on only Wsign-compare in optwarn.yml, built the files, found the warning, fixed it by casting `config_length` to `size_t`.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/878
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/20251218/a2c353ea/attachment-0001.htm>


More information about the bugs mailing list