mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
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.
This commit is contained in:
@@ -528,7 +528,7 @@ parse_reg_property(device *current,
|
||||
if (device_nr_size_cells(bus) > 0)
|
||||
chp = parse_size(current, bus, chp, ®s[reg_nr].size);
|
||||
else
|
||||
memset(®s[reg_nr].size, 0, sizeof (®s[reg_nr].size));
|
||||
memset(®s[reg_nr].size, 0, sizeof (regs[reg_nr].size));
|
||||
}
|
||||
|
||||
/* create it */
|
||||
|
||||
Reference in New Issue
Block a user