mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-25 19:38:15 +08:00
bsps/shared/*: 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
1339ef1b10
commit
bc959e983f
@@ -295,6 +295,8 @@ static void i2c_rtc_init(int minor)
|
||||
|
||||
bool i2c_rtc_probe(int minor)
|
||||
{
|
||||
(void) minor;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,8 @@ static void m48t08_initialize(
|
||||
int minor
|
||||
)
|
||||
{
|
||||
(void) minor;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -60,6 +60,10 @@ rtems_device_driver rtc_initialize(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor_arg;
|
||||
(void) arg;
|
||||
|
||||
rtems_device_minor_number minor;
|
||||
rtems_status_code status;
|
||||
|
||||
@@ -132,6 +136,9 @@ rtems_device_driver rtc_read(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
|
||||
int rv = 0;
|
||||
rtems_libio_rw_args_t *rw = arg;
|
||||
rtems_time_of_day *tod = (rtems_time_of_day *) rw->buffer;
|
||||
@@ -166,6 +173,9 @@ rtems_device_driver rtc_write(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
|
||||
int rv = 0;
|
||||
rtems_libio_rw_args_t *rw = arg;
|
||||
const rtems_time_of_day *tod = (const rtems_time_of_day *) rw->buffer;
|
||||
@@ -200,6 +210,10 @@ rtems_device_driver rtc_open(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
(void) arg;
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
@@ -209,6 +223,10 @@ rtems_device_driver rtc_close(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
(void) arg;
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
@@ -218,6 +236,10 @@ rtems_device_driver rtc_control(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
(void) arg;
|
||||
|
||||
return RTEMS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,5 +36,7 @@ bool rtc_probe(
|
||||
int minor
|
||||
)
|
||||
{
|
||||
(void) minor;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user