2005-10-04 16:03:35

by Michal Piotrowski

[permalink] [raw]
Subject: 2.6.14-rc3-git-current xfs compilation warnings

Hi,
I have noticed this warnings while compiling xfs as module.

CC [M] fs/xfs/xfs_acl.o
fs/xfs/xfs_acl.c: In function 'xfs_acl_access':
fs/xfs/xfs_acl.c:445: warning: 'matched.ae_perm' may be used
uninitialized in this function

CC [M] fs/xfs/xfs_alloc_btree.o
fs/xfs/xfs_alloc_btree.c: In function 'xfs_alloc_insrec':
fs/xfs/xfs_alloc_btree.c:622: warning: 'nrec.ar_startblock' may be
used uninitialized in this function
fs/xfs/xfs_alloc_btree.c:622: warning: 'nrec.ar_blockcount' may be
used uninitialized in this function

CC [M] fs/xfs/xfs_dir2_sf.o
fs/xfs/xfs_dir2_sf.c: In function 'xfs_dir2_block_sfsize':
fs/xfs/xfs_dir2_sf.c:110: warning: 'parent' may be used uninitialized
in this function
CC [M] fs/xfs/xfs_dir_leaf.o
fs/xfs/xfs_dir_leaf.c: In function 'xfs_dir_leaf_to_shortform':
fs/xfs/xfs_dir_leaf.c:653: warning: 'parent' may be used uninitialized
in this function

CC [M] fs/xfs/xfs_ialloc_btree.o
fs/xfs/xfs_ialloc_btree.c: In function 'xfs_inobt_insrec':
fs/xfs/xfs_ialloc_btree.c:750: warning: 'nrec.ir_free' is used
uninitialized in this function
fs/xfs/xfs_ialloc_btree.c:750: warning: 'nrec.ir_freecount' is used
uninitialized in this function
fs/xfs/xfs_ialloc_btree.c:567: warning: 'nrec.ir_startino' may be used
uninitialized in this function

michal@debian:/usr/src/linux-git$ gcc --version
gcc (GCC) 4.0.2 (Debian 4.0.2-2)

Regards,
Michal Piotrowski


2005-10-04 20:09:48

by Nathan Scott

[permalink] [raw]
Subject: Re: 2.6.14-rc3-git-current xfs compilation warnings

On Tue, Oct 04, 2005 at 04:03:32PM +0000, Michal Piotrowski wrote:
> Hi,
> I have noticed this warnings while compiling xfs as module.
>
> CC [M] fs/xfs/xfs_acl.o
> fs/xfs/xfs_acl.c: In function 'xfs_acl_access':
> fs/xfs/xfs_acl.c:445: warning: 'matched.ae_perm' may be used
> uninitialized in this function

These gcc v4 warnings are fixed in the current XFS devlopment
tree on oss.sgi.com - these will get merged at an appropriate
time.

> michal@debian:/usr/src/linux-git$ gcc --version
> gcc (GCC) 4.0.2 (Debian 4.0.2-2)

cheers.

--
Nathan