mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
arm/imx: 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
c4fdd4c4cb
commit
172c853ba9
@@ -253,6 +253,8 @@ static bool imx_uart_first_open(
|
||||
rtems_libio_open_close_args_t *args
|
||||
)
|
||||
{
|
||||
(void) args;
|
||||
|
||||
imx_uart_context *ctx;
|
||||
volatile imx_uart *regs;
|
||||
#ifdef CONSOLE_USE_INTERRUPTS
|
||||
@@ -300,10 +302,16 @@ static void imx_uart_last_close(
|
||||
)
|
||||
{
|
||||
#ifdef CONSOLE_USE_INTERRUPTS
|
||||
(void) args;
|
||||
|
||||
imx_uart_context *ctx;
|
||||
|
||||
ctx = (imx_uart_context *) base;
|
||||
rtems_interrupt_handler_remove(ctx->irq, imx_uart_interrupt, tty);
|
||||
#else
|
||||
(void) tty;
|
||||
(void) base;
|
||||
(void) args;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -367,6 +375,10 @@ rtems_status_code console_initialize(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
(void) arg;
|
||||
|
||||
char path[] = "/dev/ttyS?";
|
||||
size_t i;
|
||||
|
||||
|
||||
@@ -71,6 +71,8 @@ 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[1] + MAGIC_IRQ_OFFSET;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user