RTEMS | bsps/powerpc: Address -Wsign-compare warnings (!1009)

Kinsey Moore (@opticron) gitlab at rtems.org
Wed Feb 4 15:22:23 UTC 2026




Kinsey Moore started a new discussion on bsps/powerpc/tqm8xx/spi/spi.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1009#note_141100

 >  #if defined(DEBUG)
 >    printk("... exit OK, rc=%d\r\n",bc);
 >  #endif
 > -  return (rc == RTEMS_SUCCESSFUL) ? bc : -rc;
 > +  if (rc == RTEMS_SUCCESSFUL) {
 > +    return bc;
 > +  }
 > +  return -rc;

Is this a sign compare warning fix?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1009#note_141100
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/20260204/d666725a/attachment-0001.htm>


More information about the bugs mailing list