mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
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:
committed by
Gedare Bloom
parent
9e948edd67
commit
1cf1b039a6
@@ -177,6 +177,10 @@ rtems_status_code console_initialize(
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
(void) major;
|
||||
(void) minor;
|
||||
(void) arg;
|
||||
|
||||
char path[] = "/dev/ttyS?";
|
||||
|
||||
rtems_termios_initialize();
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user