Skip to contentSkip to conversation

ppc: eliminate gcc warning in prom.c

PATCH New Paul Mackerras 1 participant 1 message Apr 2, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc: eliminate gcc warning in prom.c

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.

arch/ppc/syslib/prom.c +1 -1
diff -urN linux-2.5/arch/ppc/syslib/prom.c pmac-2.5/arch/ppc/syslib/prom.c
@@ -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;