mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 00:05:39 +08:00
arm/imxrt: 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
172c853ba9
commit
1600191ebd
@@ -276,6 +276,8 @@ static bool imxrt_lpuart_first_open(
|
||||
rtems_libio_open_close_args_t *args
|
||||
)
|
||||
{
|
||||
(void) args;
|
||||
|
||||
#ifdef BSP_CONSOLE_USE_INTERRUPTS
|
||||
rtems_status_code sc;
|
||||
#endif
|
||||
@@ -312,6 +314,8 @@ static void imxrt_lpuart_last_close(
|
||||
rtems_libio_open_close_args_t *args
|
||||
)
|
||||
{
|
||||
(void) args;
|
||||
|
||||
imxrt_lpuart_context *ctx = imxrt_lpuart_get_context(base);
|
||||
|
||||
LPUART_Deinit((LPUART_Type *)ctx->regs);
|
||||
@@ -446,6 +450,10 @@ rtems_status_code console_initialize(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
(void) arg;
|
||||
|
||||
const void *fdt;
|
||||
int stdout_node;
|
||||
int node;
|
||||
|
||||
@@ -272,6 +272,8 @@ static void imxrt_lpspi_next_rx_msg(
|
||||
volatile LPSPI_Type *regs
|
||||
)
|
||||
{
|
||||
(void) regs;
|
||||
|
||||
if (bus->rx_msg_todo > 0) {
|
||||
const spi_ioc_transfer *msg;
|
||||
|
||||
|
||||
@@ -134,6 +134,7 @@ rtems_vector_number imx_get_irq_of_node(
|
||||
|
||||
uint32_t bsp_fdt_map_intr(const uint32_t *intr, size_t icells)
|
||||
{
|
||||
(void) icells;
|
||||
return intr[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user