Re: [PATCH 2.6.19-rc3] i386/io_apic: fix compiler warning in create_irq

From: Ingo Molnar
Date: Thu Nov 09 2006 - 05:34:41 EST



* Adrian Bunk <bunk@xxxxxxxxx> wrote:

> On Tue, Oct 31, 2006 at 12:15:02PM +0100, Ingo Molnar wrote:
> >...
> > we definitely do not want to hide these places. They both make the
> > code less readable (why initialize it to some value if that value is
> > never used) and they hide the problem from the GCC folks too.
>
> What about cases where it's technically impossible for gcc to ever see
> that a variable actually gets initialized?

we should mark them as such or even initialize them outright. But these
are the exception.

Ingo
-
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/