bsps/riscv/noel: 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 14:14:44 -05:00
committed by Gedare Bloom
parent 9e948edd67
commit 1cf1b039a6
2 changed files with 6 additions and 0 deletions

View File

@@ -177,6 +177,10 @@ rtems_status_code console_initialize(
void *arg
)
{
(void) major;
(void) minor;
(void) arg;
char path[] = "/dev/ttyS?";
rtems_termios_initialize();

View File

@@ -35,6 +35,8 @@
void bsp_reset( rtems_fatal_source source, rtems_fatal_code code )
{
(void) source;
uint64_t args[2] = {ADP_Stopped_ApplicationExit, code};
__asm__ volatile ("li a0, %0" ::"i"(TARGET_SYS_EXIT_EXTENDED));
__asm__ volatile ("mv a1, %0" ::"r"(&args));