diff options
author | Paul Mackerras <paulus@samba.org> | 2005-04-03 17:37:37 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-03 17:37:37 -0700 |
commit | 868cda2807716c7ed12d3b210e06edcb7880ae0a (patch) | |
tree | 3aa6430c502c513efc47c1e3cf9e2bf7da315372 | |
parent | 168b5349e7c36927b5b99f963bfbf1f7b50ff0e6 (diff) | |
download | history-868cda2807716c7ed12d3b210e06edcb7880ae0a.tar.gz |
[PATCH] ppc32: eliminate gcc warning in xmon.c
This patch shuts up some more incorrect gcc warnings.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/ppc/xmon/xmon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/ppc/xmon/xmon.c b/arch/ppc/xmon/xmon.c index 9976e7cb5b0d28..8565f49b8b0b87 100644 --- a/arch/ppc/xmon/xmon.c +++ b/arch/ppc/xmon/xmon.c @@ -1033,9 +1033,9 @@ dump_hash_table_seg(unsigned seg, unsigned start, unsigned end) extern unsigned long Hash_size; unsigned *htab = Hash; unsigned hsize = Hash_size; - unsigned v, hmask, va, last_va; + unsigned v, hmask, va, last_va = 0; int found, last_found, i; - unsigned *hg, w1, last_w2, last_va0; + unsigned *hg, w1, last_w2 = 0, last_va0 = 0; last_found = 0; hmask = hsize / 64 - 1; @@ -1492,7 +1492,7 @@ ppc_inst_dump(unsigned adr, int count) { int nr, dotted; unsigned first_adr; - unsigned long inst, last_inst; + unsigned long inst, last_inst = 0; unsigned char val[4]; dotted = 0; @@ -1959,7 +1959,7 @@ unsigned long xmon_symbol_to_addr(char* symbol) { char *p, *cur; - char *match; + char *match = NULL; int goodness = 0; int result = 0; |