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:
Joel Sherrill
2025-10-10 20:52:14 +00:00
committed by Gedare Bloom
parent 1339ef1b10
commit bc959e983f
39 changed files with 234 additions and 0 deletions
+2
View File
@@ -295,6 +295,8 @@ static void i2c_rtc_init(int minor)
bool i2c_rtc_probe(int minor)
{
(void) minor;
return true;
}
+2
View File
@@ -60,6 +60,8 @@ static void m48t08_initialize(
int minor
)
{
(void) minor;
}
/*
+22
View File
@@ -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;
}
+2
View File
@@ -36,5 +36,7 @@ bool rtc_probe(
int minor
)
{
(void) minor;
return true;
}