[PATCH] ppc: eliminate gcc warning in prom.c
From: Paul Mackerras
Date: Sat Apr 02 2005 - 00:07:51 EST
This patch shuts up a couple of gcc "variable may be used
uninitialized" warnings. The warnings are invalid - the code is such
that the variables are in fact initialized before being used - but gcc
isn't smart enough to see that. This patch eliminates the warnings.
Signed-off-by: Paul Mackerras <paulus@xxxxxxxxx>
diff -urN linux-2.5/arch/ppc/syslib/prom.c pmac-2.5/arch/ppc/syslib/prom.c
--- linux-2.5/arch/ppc/syslib/prom.c 2005-01-22 09:25:41.000000000 +1100
+++ pmac-2.5/arch/ppc/syslib/prom.c 2005-01-30 18:54:26.000000000 +1100
@@ -308,7 +308,7 @@
struct device_node *p, *ipar;
unsigned int *imap, *imask, *ip;
int i, imaplen, match;
- int newintrc, newaddrc;
+ int newintrc = 1, newaddrc = 1;
unsigned int *reg;
int naddrc;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/