testsuites/samples/*: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
    Found with GCC's warning -Wunused-paramter.
This commit is contained in:
Joel Sherrill
2025-10-08 16:48:32 +00:00
committed by Gedare Bloom
parent 7d4ae6a2fa
commit 744c4791c5
13 changed files with 44 additions and 0 deletions
+2
View File
@@ -46,6 +46,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
(void) argument;
rtems_name task_name;
rtems_id tid;
rtems_status_code status;
+5
View File
@@ -46,6 +46,9 @@ volatile int can_proceed = 1;
static void notification(int fd, int seconds_remaining, void *arg)
{
(void) fd;
(void) arg;
printf(
"Press any key to start capture engine (%is remaining)\n",
seconds_remaining
@@ -56,6 +59,8 @@ rtems_task Init(
rtems_task_argument ignored
)
{
(void) ignored;
rtems_status_code status;
rtems_task_priority old_priority;
rtems_mode old_mode;
+7
View File
@@ -91,6 +91,8 @@ capture_CT1a (rtems_task_argument arg)
static void
capture_CT1b (rtems_task_argument arg)
{
(void) arg;
volatile int i;
while (!capture_CT1c_deleted)
@@ -130,6 +132,11 @@ capture_test_1 (int argc,
const rtems_monitor_command_arg_t* command_arg,
bool verbose)
{
(void) argc;
(void) argv;
(void) command_arg;
(void) verbose;
rtems_status_code sc;
rtems_name name;
rtems_id id[3];
+10
View File
@@ -238,6 +238,9 @@ shell_nvdisk_erase (int argc, char* argv[])
static int
shell_bdbuf_trace (int argc, char* argv[])
{
(void) argc;
(void) argv;
#if RTEMS_BDBUF_TRACE
extern bool rtems_bdbuf_tracer;
rtems_bdbuf_tracer = !rtems_bdbuf_tracer;
@@ -1144,12 +1147,17 @@ static void fileio_menu (void)
static rtems_task
fileio_task (rtems_task_argument ignored)
{
(void) ignored;
fileio_menu();
}
static void
notification (int fd, int seconds_remaining, void *arg)
{
(void) fd;
(void) arg;
printf(
"Press any key to start file I/O sample (%is remaining)\n",
seconds_remaining
@@ -1162,6 +1170,8 @@ notification (int fd, int seconds_remaining, void *arg)
rtems_task
Init (rtems_task_argument ignored)
{
(void) ignored;
rtems_name Task_name;
rtems_id Task_id;
rtems_status_code status;
+2
View File
@@ -39,6 +39,8 @@ static rtems_task Init(
rtems_task_argument ignored
)
{
(void) ignored;
rtems_print_printer_fprintf_putc(&rtems_test_printer);
TEST_BEGIN();
printf( "Hello World\n" );
+2
View File
@@ -52,6 +52,8 @@ rtems_task Init(
rtems_task_argument ignored
)
{
(void) ignored;
TEST_BEGIN();
std::cout << "Hello World" << std::endl;
TEST_END();
+2
View File
@@ -41,6 +41,8 @@
static void *Init( uintptr_t ignored )
{
(void) ignored;
/* initialize application */
/* Real application would call idle loop functionality */
+2
View File
@@ -79,6 +79,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
(void) argument;
rtems_status_code status;
rtems_time_of_day time;
int index;
+2
View File
@@ -45,6 +45,8 @@ rtems_task Init(
rtems_task_argument ignored
)
{
(void) ignored;
/*
* Install whatever optional floating point assistance package
* is required by this CPU.
+4
View File
@@ -355,6 +355,10 @@ main (
char **argv
)
{
#ifdef __rtems__
(void) argc;
#endif
/* First two assignments use integer right-hand sides. */
Zero = 0;
One = 1;
+2
View File
@@ -46,6 +46,8 @@ rtems_task Init(
rtems_task_argument argument
)
{
(void) argument;
rtems_status_code status;
rtems_time_of_day time;
+2
View File
@@ -44,6 +44,8 @@ rtems_task Test_task(
rtems_task_argument unused
)
{
(void) unused;
rtems_id tid;
rtems_time_of_day time;
uint32_t task_index;
+2
View File
@@ -45,6 +45,8 @@ rtems_task Init(
rtems_task_argument ignored
)
{
(void) ignored;
rtems_task_priority old_priority;
rtems_mode old_mode;
uint32_t task;