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/main.c | |
parent | c5a2e0123b7241be6a2022f1acb8fa700dda628a (diff) | |
download | binutils-gdb-be2bc30f9cb3e8dd8b566db551a8ce3cc305e015.tar.gz |
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/main.c')
-rw-r--r-- | sim/ppc/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/ppc/main.c b/sim/ppc/main.c index f3f2e9ef338..0c1a070fc2c 100644 --- a/sim/ppc/main.c +++ b/sim/ppc/main.c @@ -251,7 +251,7 @@ cntrl_c(int sig) int -main(int argc, char **argv) +main(int argc, char * const *argv) { const char *name_of_file; char *arg_; |