Re: [PATCH] serial: 8250: fix uninitialized compiler warning

From: Davidlohr Bueso
Date: Tue Nov 09 2010 - 13:54:50 EST


On Tue, 2010-11-09 at 18:33 +0000, Alan Cox wrote:
> On Tue, 09 Nov 2010 13:55:23 -0300
> Davidlohr Bueso <dave@xxxxxxx> wrote:
>
> > From: Davidlohr Bueso <dave@xxxxxxx>
> >
> > This addresses:
> >
> > CC [M] drivers/serial/8250.o
> > drivers/serial/8250.c: In function âserial8250_shutdownâ:
> > drivers/serial/8250.c:1696: warning: âiâ may be used uninitialized in this function
> > drivers/serial/8250.c:1696: note: âiâ was declared here
>
> NAK - pleass see the four or five previous discussions on this one.
>
Yes I should have googled this one before sending.

> The current compilers all seem to get it right anyway.

This is with gcc 4.4.5 (ubuntu 10.10 - latest), released on October 1st,
2010 (quite current).

Thanks,
Davidlohr


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