uC5282/console/console.c: Fix misleading indentation warning

The rtems_interrupt_disable macros expand to some code that
is indented. GCC sees this as misleading indentation next
to the while loop without braces.
This commit is contained in:
Jeremy Lorelli
2025-07-09 12:32:20 -07:00
parent 4fb0632a4e
commit 2ec78303eb

View File

@@ -44,10 +44,14 @@ _BSP_null_char( char c )
rtems_interrupt_disable(level); rtems_interrupt_disable(level);
while ( (MCF5282_UART_USR(CONSOLE_PORT) & MCF5282_UART_USR_TXRDY) == 0 ) while ( (MCF5282_UART_USR(CONSOLE_PORT) & MCF5282_UART_USR_TXRDY) == 0 )
{
continue; continue;
}
MCF5282_UART_UTB(CONSOLE_PORT) = c; MCF5282_UART_UTB(CONSOLE_PORT) = c;
while ( (MCF5282_UART_USR(CONSOLE_PORT) & MCF5282_UART_USR_TXRDY) == 0 ) while ( (MCF5282_UART_USR(CONSOLE_PORT) & MCF5282_UART_USR_TXRDY) == 0 )
{
continue; continue;
}
rtems_interrupt_enable(level); rtems_interrupt_enable(level);
} }