From be2bc30f9cb3e8dd8b566db551a8ce3cc305e015 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 15 May 2021 10:48:02 -0400 Subject: sim: ppc: clean up various warnings A random grab bag of minor fixes to enable -Werror for this port. Cast address vars to long when the format was using %l. Use %zu with sizeof operations. Add const to a bunch of strings. Trim unused variables. Fix sizeof call to calculate target storage and not the pointer itself. --- sim/ppc/hw_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sim/ppc/hw_init.c') diff --git a/sim/ppc/hw_init.c b/sim/ppc/hw_init.c index 779c95c..e46643c 100644 --- a/sim/ppc/hw_init.c +++ b/sim/ppc/hw_init.c @@ -369,8 +369,8 @@ update_for_binary_section(bfd *abfd, mem_in[2] = section_vma; if (device_instance_call_method(memory, "claim", 3, mem_in, 1, mem_out) < 0) device_error(me, "failed to claim memory for section at 0x%lx (0x%lx", - section_vma, - section_size); + (unsigned long)section_vma, + (unsigned long)section_size); if (mem_out[0] != section_vma) device_error(me, "section address not as requested"); } -- cgit v1.1