From ef2367aec63a8a24b7eee6549dcefe48ad558c8c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 10 Oct 2025 13:54:50 -0500 Subject: [PATCH] bsps/mips/csb350: Address unused parameter warnings Add "(void) param;" annotation to address unused parameter warnings. Found with GCC's warning -Wunused-parameter. --- bsps/mips/csb350/console/console-io.c | 4 ++++ bsps/mips/csb350/irq/vectorisrs.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/bsps/mips/csb350/console/console-io.c b/bsps/mips/csb350/console/console-io.c index edbb9d87f2..aceab55fb3 100644 --- a/bsps/mips/csb350/console/console-io.c +++ b/bsps/mips/csb350/console/console-io.c @@ -59,6 +59,8 @@ void console_outbyte_polled( char ch ) { + (void) port; + /* wait for the fifo to make room */ while ((uart0->linestat & 0x20) == 0) { continue; @@ -77,6 +79,8 @@ int console_inbyte_nonblocking( int port ) { + (void) port; + unsigned char c; if (uart0->linestat & 1) { diff --git a/bsps/mips/csb350/irq/vectorisrs.c b/bsps/mips/csb350/irq/vectorisrs.c index 6f9e640322..008b76220e 100644 --- a/bsps/mips/csb350/irq/vectorisrs.c +++ b/bsps/mips/csb350/irq/vectorisrs.c @@ -108,6 +108,9 @@ static void call_vectored_isr( void *ctrlr ) { + (void) frame; + (void) cause; + uint32_t src; uint32_t mask; int index;