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 <[email protected]>
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]