[Tux3] Initialize rest_limit_adjust before use
Daniel Phillips
phillips at phunq.net
Tue Dec 30 14:11:01 PST 2008
On Tuesday 30 December 2008 10:25, OGAWA Hirofumi wrote:
> "Liu XiaoFeng" <bladehliu at gmail.com> writes:
>
> > There is a warning when tux3 is compiled:
> > "fs/tux3/dleaf.c:300: warning: 'rest_limit_adjust' may be used uninitialized
> > in this function"
>
> Looks like it's the bug of gcc. Which version? (BTW, gcc-4.3 doesn't warn).
> Anyway, I'd like to change it like the following instead.
>
> Does the following patch work for your gcc version too?
>
> Thanks.
My gcc also warned, version 4.1.1. I committed your patch.
Regards,
Daniel
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list