From 38367143fe185354ea86ec7dae99f3229b2870f8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 6 Nov 2025 10:20:02 -0600 Subject: [PATCH] mcf5235/console/console.c: Correct comparisons of different signedness The GCC warning -Wsign-compare flagged these instances of comparing signed and unsigned types. A common pair was size_t and int. --- bsps/m68k/mcf5235/console/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/m68k/mcf5235/console/console.c b/bsps/m68k/mcf5235/console/console.c index e53d16932c..d770cffdbc 100644 --- a/bsps/m68k/mcf5235/console/console.c +++ b/bsps/m68k/mcf5235/console/console.c @@ -668,7 +668,7 @@ rtems_device_driver console_open( }; /* open the port depending on the minor device number */ - if ( ( minor >= 0 ) && ( minor < MAX_UART_INFO ) ) + if ( minor < MAX_UART_INFO ) { info = &IntUartInfo[minor]; switch ( info->iomode )