cpukit aarch64: 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 21:58:12 +00:00
committed by Gedare Bloom
parent f23b320d58
commit f89a27b40f
4 changed files with 34 additions and 0 deletions
@@ -450,6 +450,8 @@ static const char *aarch64_mode_label( int mode )
static int aarch64_debug_probe( rtems_debugger_target *target )
{
(void) target;
int debug_version;
uint64_t val;
const char *vl = "[Invalid version]";
@@ -750,6 +752,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 );
}
@@ -1736,6 +1740,11 @@ int rtems_debugger_target_hwbreak_control(
DB_UINT kind
)
{
(void) wp;
(void) insert;
(void) addr;
(void) kind;
/* To do. */
return 0;
}
+22
View File
@@ -179,6 +179,9 @@ uint32_t
rtems_rtl_elf_section_flags (const rtems_rtl_obj* obj,
const Elf_Shdr* shdr)
{
(void) obj;
(void) shdr;
return 0;
}
@@ -217,6 +220,8 @@ rtems_rtl_elf_arch_section_free (const rtems_rtl_obj* obj,
bool
rtems_rtl_elf_rel_resolve_sym (Elf_Word type)
{
(void) type;
return true;
}
@@ -229,6 +234,9 @@ rtems_rtl_elf_reloc_rela (rtems_rtl_obj* obj,
const Elf_Word symvalue,
const bool parsing)
{
(void) symname;
(void) syminfo;
Elf64_Addr *where;
Elf32_Addr *where32;
Elf_Addr off = rela->r_offset;
@@ -559,6 +567,13 @@ rtems_rtl_elf_relocate_rel_tramp (rtems_rtl_obj* obj,
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, "rela type record not supported");
return rtems_rtl_elf_rel_failure;
}
@@ -571,6 +586,13 @@ rtems_rtl_elf_relocate_rel (rtems_rtl_obj* obj,
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, "rela type record not supported");
return rtems_rtl_elf_rel_failure;
}
@@ -43,6 +43,8 @@
void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
(void) ignored;
while ( true ) {
__asm__ volatile ("wfi");
}
+1
View File
@@ -134,6 +134,7 @@ void _CPU_Context_Initialize(
)
{
(void) new_level;
(void) is_fp;
the_context->register_sp = (uintptr_t) stack_area_begin + stack_area_size;
the_context->register_lr = (uintptr_t) entry_point;