mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
arm/stm32f4: 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
c9c04ebdea
commit
004e3b7bbc
@@ -177,6 +177,8 @@ static void usart_initialize(int minor)
|
|||||||
|
|
||||||
static int usart_first_open(int major, int minor, void *arg)
|
static int usart_first_open(int major, int minor, void *arg)
|
||||||
{
|
{
|
||||||
|
(void) major;
|
||||||
|
|
||||||
rtems_status_code sc = RTEMS_SUCCESSFUL;
|
rtems_status_code sc = RTEMS_SUCCESSFUL;
|
||||||
rtems_libio_open_close_args_t *oc = (rtems_libio_open_close_args_t *) arg;
|
rtems_libio_open_close_args_t *oc = (rtems_libio_open_close_args_t *) arg;
|
||||||
rtems_termios_tty *tty = (struct rtems_termios_tty *) oc->iop->data1;
|
rtems_termios_tty *tty = (struct rtems_termios_tty *) oc->iop->data1;
|
||||||
@@ -199,6 +201,8 @@ static int usart_first_open(int major, int minor, void *arg)
|
|||||||
|
|
||||||
static int usart_last_close(int major, int minor, void *arg)
|
static int usart_last_close(int major, int minor, void *arg)
|
||||||
{
|
{
|
||||||
|
(void) major;
|
||||||
|
|
||||||
rtems_status_code sc = RTEMS_SUCCESSFUL;
|
rtems_status_code sc = RTEMS_SUCCESSFUL;
|
||||||
#ifdef BSP_CONSOLE_USE_INTERRUPTS
|
#ifdef BSP_CONSOLE_USE_INTERRUPTS
|
||||||
rtems_libio_open_close_args_t *oc = (rtems_libio_open_close_args_t *) arg;
|
rtems_libio_open_close_args_t *oc = (rtems_libio_open_close_args_t *) arg;
|
||||||
@@ -206,6 +210,9 @@ static int usart_last_close(int major, int minor, void *arg)
|
|||||||
const console_tbl *ct = Console_Port_Tbl [minor];
|
const console_tbl *ct = Console_Port_Tbl [minor];
|
||||||
|
|
||||||
sc = rtems_interrupt_handler_remove(ct->ulIntVector, stm32f4_usart_interrupt, tty);
|
sc = rtems_interrupt_handler_remove(ct->ulIntVector, stm32f4_usart_interrupt, tty);
|
||||||
|
#else
|
||||||
|
(void) minor;
|
||||||
|
(void) arg;
|
||||||
#endif
|
#endif
|
||||||
return sc;
|
return sc;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ static stm32f4_rcc_index i2c_get_rcc_index(stm32f4_i2c_bus_entry *e)
|
|||||||
|
|
||||||
static uint32_t i2c_get_pclk(stm32f4_i2c_bus_entry *e)
|
static uint32_t i2c_get_pclk(stm32f4_i2c_bus_entry *e)
|
||||||
{
|
{
|
||||||
|
(void) e;
|
||||||
|
|
||||||
return STM32F4_PCLK1;
|
return STM32F4_PCLK1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user