Skip to contentSkip to conversation

2.6.14-rc3-git-current xfs compilation warnings

DISCUSSION Michal Piotrowski 2 participants 2 messages Oct 4, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 7 lines · Michal Piotrowski

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.

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

cheers.

Signature · 1 line
Nathan