cpukit powerpc: 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:22:43 -05:00
committed by Gedare Bloom
parent 271495beca
commit 400fe1a119
2 changed files with 27 additions and 0 deletions

View File

@@ -630,6 +630,8 @@ static void ppc_set_dbcr0(uint32_t dbcr)
static int ppc_debug_probe(rtems_debugger_target* target)
{
(void) target;
if (ppc_probe_cpu_type() != 0) {
return -1;
}
@@ -1191,6 +1193,11 @@ rtems_debugger_target_hwbreak_control(rtems_debugger_target_watchpoint wp,
uintptr_t addr,
DB_UINT kind)
{
(void) wp;
(void) insert;
(void) addr;
(void) kind;
target_printk("]] rtems-db: powerpc: %s\n", __func__);
/*
* To do.

View File

@@ -120,6 +120,9 @@ uint32_t
rtems_rtl_elf_section_flags (const rtems_rtl_obj* obj,
const Elf_Shdr* shdr)
{
(void) obj;
(void) shdr;
return 0;
}
@@ -130,6 +133,11 @@ rtems_rtl_elf_arch_parse_section (const rtems_rtl_obj* obj,
const Elf_Shdr* shdr,
const uint32_t flags)
{
(void) obj;
(void) section;
(void) name;
(void) shdr;
#if !_ARCH_PPC64
struct {
const char* label;
@@ -154,6 +162,9 @@ bool
rtems_rtl_elf_arch_section_alloc (const rtems_rtl_obj* obj,
rtems_rtl_obj_sect* sect)
{
(void) obj;
(void) sect;
#if _ARCH_PPC64
rtems_rtl_set_error (ENOMEM, ".sdata no supported by ABI");
return false;
@@ -192,6 +203,9 @@ bool
rtems_rtl_elf_arch_section_free (const rtems_rtl_obj* obj,
rtems_rtl_obj_sect* sect)
{
(void) obj;
(void) sect;
#if !_ARCH_PPC64
if (rtems_rtl_trace (RTEMS_RTL_TRACE_DETAIL))
printf ("rtl: section: arch: free: name=%s size=%zu\n", sect->name, sect->size);
@@ -204,6 +218,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;
}
@@ -270,6 +286,10 @@ rtems_rtl_elf_reloc_rela (rtems_rtl_obj* obj,
const Elf_Word symvalue,
const bool parsing)
{
(void) symname;
(void) syminfo;
(void) symvalue;
Elf_Addr* where;
Elf_Word tmp;
uint32_t mask = 0;