From b5d863152af1e5010d91c705479dbd47ee7f1808 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 10 Oct 2025 13:55:50 -0500 Subject: [PATCH] bsps/mips/malta: Address unused parameter warnings Add "(void) param;" annotation to address unused parameter warnings. Found with GCC's warning -Wunused-parameter. --- bsps/mips/malta/irq/vectorisrs.c | 2 ++ bsps/mips/malta/pci/pci.c | 6 ++++++ bsps/mips/malta/start/bspstart.c | 2 ++ 3 files changed, 10 insertions(+) diff --git a/bsps/mips/malta/irq/vectorisrs.c b/bsps/mips/malta/irq/vectorisrs.c index 9307392673..56f097849b 100644 --- a/bsps/mips/malta/irq/vectorisrs.c +++ b/bsps/mips/malta/irq/vectorisrs.c @@ -45,6 +45,8 @@ void mips_default_isr( int vector ); void mips_vector_isr_handlers( CPU_Interrupt_frame *frame ) { + (void) frame; + unsigned int sr; unsigned int cause; unsigned int pending; diff --git a/bsps/mips/malta/pci/pci.c b/bsps/mips/malta/pci/pci.c index 185e1ac2a2..a7513e767d 100644 --- a/bsps/mips/malta/pci/pci.c +++ b/bsps/mips/malta/pci/pci.c @@ -981,6 +981,8 @@ void pci_memory_enable( unsigned char function ) { + (void) bus; + uint16_t data; pci_read_config_word(0, slot, function, PCI_COMMAND, &data); @@ -995,6 +997,8 @@ void pci_io_enable( unsigned char function ) { + (void) bus; + uint16_t data; pci_read_config_word(0, slot, function, PCI_COMMAND, &data); @@ -1008,6 +1012,8 @@ void pci_busmaster_enable( unsigned char function ) { + (void) bus; + uint16_t data; pci_read_config_word(0, slot, function, PCI_COMMAND, &data); diff --git a/bsps/mips/malta/start/bspstart.c b/bsps/mips/malta/start/bspstart.c index 4940b6f8c4..38082761ba 100644 --- a/bsps/mips/malta/start/bspstart.c +++ b/bsps/mips/malta/start/bspstart.c @@ -122,6 +122,8 @@ void bsp_start( void ) */ void clear_cache( void *address, size_t n ) { + (void) address; + (void) n; } void get_mem_info(