diff options
author | Christoph Hellwig <hch@sgi.com> | 2005-11-01 23:06:18 -0500 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-11-01 23:06:18 -0500 |
commit | 5bde1ba99c8243617277f37897189c799e398baf (patch) | |
tree | d41b5f972c3b7f07cd0ea3af7c3f2775208e4f40 /fs/xfs/xfs_alloc_btree.c | |
parent | 9dac13e7ffddf40c7bf1bf8bf4f735af6c3d31ec (diff) |
[XFS] silence gcc4 warnings. the directory ones are wrong because of
information gcc could not find out (that a directory always has a ..
entry), the others are outright gcc bugs.
SGI-PV: 943511
SGI-Modid: xfs-linux:xfs-kern:200055a
Signed-off-by: Christoph Hellwig <hch@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_alloc_btree.c')
-rw-r--r-- | fs/xfs/xfs_alloc_btree.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/xfs/xfs_alloc_btree.c b/fs/xfs/xfs_alloc_btree.c index 1a34b7d99bcd..7ecc8c0611d1 100644 --- a/fs/xfs/xfs_alloc_btree.c +++ b/fs/xfs/xfs_alloc_btree.c | |||
@@ -614,6 +614,14 @@ xfs_alloc_insrec( | |||
614 | xfs_alloc_rec_t *rp; /* pointer to btree records */ | 614 | xfs_alloc_rec_t *rp; /* pointer to btree records */ |
615 | 615 | ||
616 | ASSERT(INT_GET(recp->ar_blockcount, ARCH_CONVERT) > 0); | 616 | ASSERT(INT_GET(recp->ar_blockcount, ARCH_CONVERT) > 0); |
617 | |||
618 | /* | ||
619 | * GCC doesn't understand the (arguably complex) control flow in | ||
620 | * this function and complains about uninitialized structure fields | ||
621 | * without this. | ||
622 | */ | ||
623 | memset(&nrec, 0, sizeof(nrec)); | ||
624 | |||
617 | /* | 625 | /* |
618 | * If we made it to the root level, allocate a new root block | 626 | * If we made it to the root level, allocate a new root block |
619 | * and we're done. | 627 | * and we're done. |