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/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/ppc/main.c') diff --git a/sim/ppc/main.c b/sim/ppc/main.c index f3f2e9e..0c1a070 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_; -- cgit v1.1