RTEMS | libtests: Address -Wsign-compare warnings (!925)

Kinsey Moore (@opticron) gitlab at rtems.org
Mon Jan 19 17:15:08 UTC 2026




Kinsey Moore started a new discussion on testsuites/libtests/dumpbuf01/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/925#note_139240

 >  
 >  /* forward declarations to avoid warnings */
 >  rtems_task Init(rtems_task_argument argument);
 > -void do_test(int length);
 > +void do_test(size_t length);
 >  
 >  unsigned char Buffer[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890\n";
 >  
 >  void do_test(
 > -  int length
 > +  size_t length
 >  )
 >  {
 >    printf( "====== Printing %d Bytes ======\n", length );

This format specifier should also change.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/925#note_139240
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/20260119/7c82d60a/attachment-0001.htm>


More information about the bugs mailing list