]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: bpf: fix -Wunused-variable warnings
authorMike Frysinger <vapier@gentoo.org>
Sat, 16 Dec 2023 02:47:06 +0000 (21:47 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 19 Dec 2023 10:51:10 +0000 (05:51 -0500)
sim/bpf/bpf-sim.c

index a4af22b2308bfc272e09848a4b17350face0a36f..2939e8265f78a20de9994dc164b5542d956df834 100644 (file)
@@ -154,7 +154,6 @@ bpf_write_u64 (SIM_CPU *cpu, bfd_vma address, uint64_t value)
 static int
 bpf_trace_printk (SIM_CPU *cpu)
 {
-  va_list ap;
   SIM_DESC sd = CPU_STATE (cpu);
 
   bfd_vma fmt_address;
@@ -1328,7 +1327,6 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
                      char * const *argv, char * const *env)
 {
   SIM_CPU *cpu = STATE_CPU (sd, 0);
-  host_callback *cb = STATE_CALLBACK (sd);
   bfd_vma addr;
 
   /* Determine the start address.