mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
bsps/m68k/mcf5329: 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
dfdc80d8e1
commit
ae0ac65278
@@ -40,4 +40,6 @@ benchmark_timer_t benchmark_timer_read(void)
|
||||
|
||||
void benchmark_timer_disable_subtracting_average_overhead(bool find_flag)
|
||||
{
|
||||
(void) find_flag;
|
||||
|
||||
}
|
||||
|
||||
@@ -15,11 +15,15 @@ static rtems_timecounter_simple mcf5329_tc;
|
||||
|
||||
static uint32_t mcf5329_tc_get(rtems_timecounter_simple *tc)
|
||||
{
|
||||
(void) tc;
|
||||
|
||||
return MCF_PIT3_PCNTR;
|
||||
}
|
||||
|
||||
static bool mcf5329_tc_is_pending(rtems_timecounter_simple *tc)
|
||||
{
|
||||
(void) tc;
|
||||
|
||||
return (MCF_PIT3_PCSR & MCF_PIT_PCSR_PIF) != 0;
|
||||
}
|
||||
|
||||
@@ -34,6 +38,8 @@ static uint32_t mcf5329_tc_get_timecount(struct timecounter *tc)
|
||||
|
||||
static void mcf5329_tc_at_tick(rtems_timecounter_simple *tc)
|
||||
{
|
||||
(void) tc;
|
||||
|
||||
MCF_PIT3_PCSR |= MCF_PIT_PCSR_PIF;
|
||||
}
|
||||
|
||||
|
||||
@@ -374,6 +374,9 @@ static ssize_t IntUartInterruptWrite(int minor, const char *buf, size_t len)
|
||||
***************************************************************************/
|
||||
static int IntUartInterruptOpen(int major, int minor, void *arg)
|
||||
{
|
||||
(void) major;
|
||||
(void) arg;
|
||||
|
||||
struct IntUartInfoStruct *info = &IntUartInfo[minor];
|
||||
|
||||
/* enable the uart */
|
||||
@@ -402,6 +405,9 @@ static int IntUartInterruptOpen(int major, int minor, void *arg)
|
||||
***************************************************************************/
|
||||
static int IntUartInterruptClose(int major, int minor, void *arg)
|
||||
{
|
||||
(void) major;
|
||||
(void) arg;
|
||||
|
||||
struct IntUartInfoStruct *info = &IntUartInfo[minor];
|
||||
|
||||
/* disable the interrupts and the uart */
|
||||
@@ -507,6 +513,8 @@ rtems_device_driver console_initialize(rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
void *arg)
|
||||
{
|
||||
(void) arg;
|
||||
|
||||
rtems_status_code status;
|
||||
|
||||
/* Set up TERMIOS */
|
||||
@@ -630,6 +638,9 @@ rtems_device_driver console_open(rtems_device_major_number major,
|
||||
rtems_device_driver console_close(rtems_device_major_number major,
|
||||
rtems_device_minor_number minor, void *arg)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
|
||||
return (rtems_termios_close(arg));
|
||||
}
|
||||
|
||||
@@ -641,6 +652,9 @@ rtems_device_driver console_close(rtems_device_major_number major,
|
||||
rtems_device_driver console_read(rtems_device_major_number major,
|
||||
rtems_device_minor_number minor, void *arg)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
|
||||
return (rtems_termios_read(arg));
|
||||
}
|
||||
|
||||
@@ -652,6 +666,9 @@ rtems_device_driver console_read(rtems_device_major_number major,
|
||||
rtems_device_driver console_write(rtems_device_major_number major,
|
||||
rtems_device_minor_number minor, void *arg)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
|
||||
return (rtems_termios_write(arg));
|
||||
}
|
||||
|
||||
@@ -664,5 +681,8 @@ rtems_device_driver console_control(rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
void *arg)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
|
||||
return (rtems_termios_ioctl(arg));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user