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

Davidlohr Bueso
2010-11-09T18:54:45Z

On Tue, 2010-11-09 at 18:33 +0000, Alan Cox wrote:
> On Tue, 09 Nov 2010 13:55:23 -0300
> Davidlohr Bueso <dave@gnu.org> wrote:
>
> > From: Davidlohr Bueso <dave@gnu.org>
> >
> > 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