[Tux3] Initialize rest_limit_adjust before use
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?
My gcc also warned, version 4.1.1. I committed your patch.
Tux3 mailing list
Tux3 at tux3.org
More information about the Tux3