arm/xilinx-zynq: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
This commit is contained in:
Joel Sherrill
2025-10-10 13:09:43 -05:00
committed by Gedare Bloom
parent 8acbcad50c
commit d379aa996b
4 changed files with 13 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ rtems_status_code console_initialize(
void *arg void *arg
) )
{ {
(void) major;
(void) minor;
(void) arg;
size_t i; size_t i;
rtems_termios_initialize(); rtems_termios_initialize();

View File

@@ -38,10 +38,12 @@ rtems_id transfer_task;
__attribute__((weak)) void zqspi_write_unlock(zqspiflash *driver) __attribute__((weak)) void zqspi_write_unlock(zqspiflash *driver)
{ {
(void) driver;
} }
__attribute__((weak)) void zqspi_write_lock(zqspiflash *driver) __attribute__((weak)) void zqspi_write_lock(zqspiflash *driver)
{ {
(void) driver;
} }
static void qspi_flash_rx(void) { static void qspi_flash_rx(void) {

View File

@@ -83,6 +83,9 @@ void zqspi_transfer_trace(
} }
printf("\n"); printf("\n");
} }
#else
(void) message;
(void) transfer;
#endif #endif
} }

View File

@@ -43,6 +43,8 @@ static int zqspi_get_flash_type(
rtems_flashdev_flash_type *type rtems_flashdev_flash_type *type
) )
{ {
(void) flash;
*type = RTEMS_FLASHDEV_NOR; *type = RTEMS_FLASHDEV_NOR;
return 0; return 0;
} }
@@ -100,6 +102,8 @@ static int zqspi_write_block_size(
size_t *write_block_size size_t *write_block_size
) )
{ {
(void) flash;
*write_block_size = 1u; *write_block_size = 1u;
return 0; return 0;
} }