From a4319861c0a2d2b6b5d3fe4071be4f335bda7cc6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 10 Oct 2025 16:15:44 -0500 Subject: [PATCH] cpukit i386: Address unused parameter warnings Add "(void) param;" annotation to address unused parameter warnings. Found with GCC's warning -Wunused-parameter. --- cpukit/libdebugger/rtems-debugger-i386.c | 7 +++++++ cpukit/libdl/rtl-mdreloc-i386.c | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/cpukit/libdebugger/rtems-debugger-i386.c b/cpukit/libdebugger/rtems-debugger-i386.c index 02e29c25a1..4ffdc389f7 100644 --- a/cpukit/libdebugger/rtems-debugger-i386.c +++ b/cpukit/libdebugger/rtems-debugger-i386.c @@ -506,6 +506,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; + /* * To do. */ @@ -515,6 +520,8 @@ rtems_debugger_target_hwbreak_control(rtems_debugger_target_watchpoint wp, int rtems_debugger_target_cache_sync(rtems_debugger_target_swbreak* swbreak) { + (void) swbreak; + /* * Nothing to do on an i386. */ diff --git a/cpukit/libdl/rtl-mdreloc-i386.c b/cpukit/libdl/rtl-mdreloc-i386.c index 09cbe4f42f..262b0bc621 100644 --- a/cpukit/libdl/rtl-mdreloc-i386.c +++ b/cpukit/libdl/rtl-mdreloc-i386.c @@ -23,6 +23,9 @@ uint32_t rtems_rtl_elf_section_flags (const rtems_rtl_obj* obj, const Elf_Shdr* shdr) { + (void) obj; + (void) shdr; + return 0; } @@ -61,6 +64,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; } @@ -140,6 +145,9 @@ rtems_rtl_elf_relocate_rel (rtems_rtl_obj* obj, const Elf_Byte syminfo, const Elf_Word symvalue) { + (void) symname; + (void) syminfo; + Elf_Addr target = 0; Elf_Addr* where; Elf_Addr tmp;