bsps/shared/.../spictrl.c: Address -Wsign-compare warnings

This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.
This commit is contained in:
Joel Sherrill
2026-01-28 10:13:21 -06:00
parent cbba19c44a
commit 5be6a2ea4f

View File

@@ -705,7 +705,7 @@ STATIC rtems_status_code spictrl_libi2c_send_addr(rtems_libi2c_bus_t *bushdl,
/* Let user set spi select using for example GPIO */
return priv->slvSelFunc(priv->regs, addr, 1);
} else if ( priv->regs->capability & SPICTRL_CAP_SSEN ) {
int slaves;
uint32_t slaves;
/* Maximum number of slaves the core support */
slaves = (priv->regs->capability & SPICTRL_CAP_SSSZ) >> SPICTRL_CAP_SSSZ_BIT;