diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-05-15 10:48:02 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-05-15 11:00:00 -0400 |
commit | be2bc30f9cb3e8dd8b566db551a8ce3cc305e015 (patch) | |
tree | b956da9b71b744d3600ee4a1a7817c4f92f3c2ba /sim/ppc/hw_ide.c | |
parent | c5a2e0123b7241be6a2022f1acb8fa700dda628a (diff) | |
download | gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.zip gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.tar.gz gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.tar.bz2 |
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.
Diffstat (limited to 'sim/ppc/hw_ide.c')
-rw-r--r-- | sim/ppc/hw_ide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/ppc/hw_ide.c b/sim/ppc/hw_ide.c index 9d3a711..6c5e051 100644 --- a/sim/ppc/hw_ide.c +++ b/sim/ppc/hw_ide.c @@ -766,7 +766,7 @@ hw_ide_io_read_buffer(device *me, *(unsigned8*)dest = controller->reg[reg]; break; default: - device_error(me, "bus-error at address 0x%lx", addr); + device_error(me, "bus-error at address 0x%lx", (unsigned long)addr); break; } return nr_bytes; @@ -820,7 +820,7 @@ hw_ide_io_write_buffer(device *me, controller->reg[reg] = *(unsigned8*)source; break; default: - device_error(me, "bus-error at 0x%lx", addr); + device_error(me, "bus-error at 0x%lx", (unsigned long)addr); break; } return nr_bytes; |