From 38d2a37bc401e99719e34a0f50239a03bb5b97e0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 3 Feb 2026 16:49:55 -0600 Subject: [PATCH] bsps/aarch64: Address -Wsign-compare warnings This warning occurs when comparing a signed variable to an unsigned one. This addresses warnings that only occurred on 64-bit targets. For the ones which only appeared on 64-bit targets, the cause was frequently a mismatch when comparing a combination off_t, ssize_t, and int. --- bsps/aarch64/xilinx-zynqmp/console/management_cfc400x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/aarch64/xilinx-zynqmp/console/management_cfc400x.c b/bsps/aarch64/xilinx-zynqmp/console/management_cfc400x.c index 2b1daa650e..761783ce6b 100644 --- a/bsps/aarch64/xilinx-zynqmp/console/management_cfc400x.c +++ b/bsps/aarch64/xilinx-zynqmp/console/management_cfc400x.c @@ -78,7 +78,7 @@ __attribute__ ((weak)) void zynqmp_configure_management_console(rtems_termios_de "\xc0\xda\x00\x00\xff\xff\xff\xff\xff\x00\xff\xff\xff\xffM#\xc0"; /* Send the system watchdog configuration command */ - for (int i = 0; i < sizeof(mgmt_watchdog_cmd); i++) { + for (size_t i = 0; i < sizeof(mgmt_watchdog_cmd); i++) { ns16550_polled_putchar(base, mgmt_watchdog_cmd[i]); } }