From 168b5349e7c36927b5b99f963bfbf1f7b50ff0e6 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sun, 3 Apr 2005 17:37:20 -0700 Subject: [PATCH] ppc32: 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. Signed-off-by: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/ppc/syslib/prom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ppc/syslib/prom.c b/arch/ppc/syslib/prom.c index 7abcdb526ed5d..2c64ed627475d 100644 --- a/arch/ppc/syslib/prom.c +++ b/arch/ppc/syslib/prom.c @@ -308,7 +308,7 @@ map_interrupt(unsigned int **irq, struct device_node **ictrler, 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; -- cgit 1.2.3-korg