mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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:
committed by
Gedare Bloom
parent
8acbcad50c
commit
d379aa996b
@@ -52,6 +52,10 @@ rtems_status_code console_initialize(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
(void) arg;
|
||||
|
||||
size_t i;
|
||||
|
||||
rtems_termios_initialize();
|
||||
|
||||
@@ -38,10 +38,12 @@ rtems_id transfer_task;
|
||||
|
||||
__attribute__((weak)) void zqspi_write_unlock(zqspiflash *driver)
|
||||
{
|
||||
(void) driver;
|
||||
}
|
||||
|
||||
__attribute__((weak)) void zqspi_write_lock(zqspiflash *driver)
|
||||
{
|
||||
(void) driver;
|
||||
}
|
||||
|
||||
static void qspi_flash_rx(void) {
|
||||
|
||||
@@ -83,6 +83,9 @@ void zqspi_transfer_trace(
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
#else
|
||||
(void) message;
|
||||
(void) transfer;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@ static int zqspi_get_flash_type(
|
||||
rtems_flashdev_flash_type *type
|
||||
)
|
||||
{
|
||||
(void) flash;
|
||||
|
||||
*type = RTEMS_FLASHDEV_NOR;
|
||||
return 0;
|
||||
}
|
||||
@@ -100,6 +102,8 @@ static int zqspi_write_block_size(
|
||||
size_t *write_block_size
|
||||
)
|
||||
{
|
||||
(void) flash;
|
||||
|
||||
*write_block_size = 1u;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user