]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Avoid unused parameter warning
authorAaron Merey <amerey@redhat.com>
Fri, 24 Oct 2025 17:25:03 +0000 (13:25 -0400)
committerAaron Merey <amerey@redhat.com>
Fri, 24 Oct 2025 17:25:03 +0000 (13:25 -0400)
backends/i386_initreg_sample.c
backends/x86_64_initreg_sample.c

index 113e5be5b696d3fd68c9558d178b649c608f2422..d7d312b069032c97b7140f01bb9bdc5926f21486 100644 (file)
@@ -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
 }
index f381eef29d180016dcccef34eb6d2edc20d2fe70..200a94a1faa2d0e93decf6c198408cf83136aaf4 100644 (file)
@@ -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
 }