cpukit microblaze: 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 16:21:58 -05:00
committed by Gedare Bloom
parent 0b37e327e4
commit b42f8a9890
3 changed files with 27 additions and 0 deletions

View File

@@ -391,6 +391,8 @@ static void target_printk( const char *format, ... )
static int microblaze_debug_probe( rtems_debugger_target *target )
{
(void) target;
uint32_t msr;
uint32_t pvr0;
uint32_t pvr3;
@@ -482,6 +484,8 @@ int rtems_debugger_target_configure( rtems_debugger_target *target )
static void target_print_frame( CPU_Exception_frame *frame )
{
(void) frame;
EXC_FRAME_PRINT( target_printk, "[} ", frame );
}
@@ -602,6 +606,8 @@ static bool tid_is_excluded( const rtems_id tid )
static void mb_thread_switch( Thread_Control *executing, Thread_Control *heir )
{
(void) executing;
if ( tid_is_excluded( heir->Object.id ) == true ) {
rtems_debugger_target_swbreak_remove();
return;
@@ -1374,6 +1380,11 @@ int rtems_debugger_target_hwbreak_control(
DB_UINT kind
)
{
(void) wp;
(void) insert;
(void) addr;
(void) kind;
return 0;
}

View File

@@ -135,6 +135,9 @@ rtems_rtl_elf_reloc_rela (rtems_rtl_obj* obj,
const Elf_Byte syminfo,
const Elf_Word symvalue,
const bool parsing) {
(void) symname;
(void) syminfo;
Elf_Word *where;
Elf_Word addend = (Elf_Word)rela->r_addend;
Elf_Addr target;
@@ -276,6 +279,14 @@ rtems_rtl_elf_relocate_rel (rtems_rtl_obj* obj,
const char* symname,
const Elf_Byte syminfo,
const Elf_Word symvalue) {
(void) obj;
(void) rel;
(void) sect;
(void) symname;
(void) syminfo;
(void) symvalue;
rtems_rtl_set_error (EINVAL, "rel type record not supported");
return rtems_rtl_elf_rel_failure;
}

View File

@@ -60,6 +60,9 @@ void _CPU_Context_Initialize(
void *tls_area
)
{
(void) new_level;
(void) is_fp;
uint32_t stack = (uint32_t) stack_area_begin;
uint32_t stack_high = stack + stack_area_size;
@@ -173,6 +176,8 @@ void _CPU_ISR_install_vector(
void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
(void) ignored;
while ( true ) {
}
}