From: Aaron Merey Date: Fri, 24 Oct 2025 17:25:03 +0000 (-0400) Subject: Avoid unused parameter warning X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb815553d41f4b9f38263b67dd1d2a4a01fce261;p=thirdparty%2Felfutils.git Avoid unused parameter warning --- diff --git a/backends/i386_initreg_sample.c b/backends/i386_initreg_sample.c index 113e5be5..d7d312b0 100644 --- a/backends/i386_initreg_sample.c +++ b/backends/i386_initreg_sample.c @@ -56,6 +56,12 @@ i386_sample_sp_pc (const Dwarf_Word *regs, uint32_t n_regs, sp, 4 /* index of sp in dwarf_regs */, pc, 8 /* index of pc in dwarf_regs */); #else + (void) regs; + (void) n_regs; + (void) regs_mapping; + (void) n_regs_mapping; + (void) sp; + (void) pc; return false; #endif } @@ -70,6 +76,11 @@ i386_sample_perf_regs_mapping (Ebl *ebl, return x86_sample_perf_regs_mapping (ebl, perf_regs_mask, abi, regs_mapping, n_regs_mapping); #else + (void) ebl; + (void) perf_regs_mask; + (void) abi; + (void) regs_mapping; + (void) n_regs_mapping; return false; #endif } diff --git a/backends/x86_64_initreg_sample.c b/backends/x86_64_initreg_sample.c index f381eef2..200a94a1 100644 --- a/backends/x86_64_initreg_sample.c +++ b/backends/x86_64_initreg_sample.c @@ -56,6 +56,12 @@ x86_64_sample_sp_pc (const Dwarf_Word *regs, uint32_t n_regs, sp, 7 /* index of sp in dwarf_regs */, pc, 16 /* index of pc in dwarf_regs */); #else + (void) regs; + (void) n_regs; + (void) regs_mapping; + (void) n_regs_mapping; + (void) sp; + (void) pc; return false; #endif } @@ -70,6 +76,11 @@ x86_64_sample_perf_regs_mapping (Ebl *ebl, return x86_sample_perf_regs_mapping (ebl, perf_regs_mask, abi, regs_mapping, n_regs_mapping); #else + (void) ebl; + (void) perf_regs_mask; + (void) abi; + (void) regs_mapping; + (void) n_regs_mapping; return false; #endif }