Joel Sherrill commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5388#note_137316 Looks like the GCC documentation is wrong or you looked at the likely older documentation that came with your native GCC. The left hand side (LHS) has a range of 0..255 which clearly cannot exceed the upper limit of a 32 bit value. C supports letters at the end to make the constant unsigned or a larger type but nothing to shrink the type. Most of the Wtype-limits warnings were for comparing an unsigned variable to be < 0 which cannot happen. I would change the macro to add a cast to uint8_t. Something like "((uint8_t) Number)". -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5388#note_137316 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
