ChangeSet 1.2229.1.13, 2005/04/04 07:37:37-07:00, [EMAIL PROTECTED]

        [PATCH] ppc32: eliminate gcc warning in xmon.c
        
        This patch shuts up some more incorrect gcc warnings.
        
        Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 xmon.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


diff -Nru a/arch/ppc/xmon/xmon.c b/arch/ppc/xmon/xmon.c
--- a/arch/ppc/xmon/xmon.c      2005-04-04 08:16:08 -07:00
+++ b/arch/ppc/xmon/xmon.c      2005-04-04 08:16:08 -07:00
@@ -1033,9 +1033,9 @@
        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 @@
 {
        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 @@
 xmon_symbol_to_addr(char* symbol)
 {
        char *p, *cur;
-       char *match;
+       char *match = NULL;
        int goodness = 0;
        int result = 0;
        
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to