[PATCH 1/1] JFS: Get rid of "may be used uninitialized" warnings
[email protected] (Dave Kleikamp) Wed, 14 Feb 2007 17:09:29 -0600 (CST)
| Newsgroups | gmane.comp.file-systems.jfs.patches |
|---|---|
| Message-ID | <[email protected]> |
JFS: Get rid of "may be used uninitialized" warnings Signed-off-by: Dave Kleikamp <[email protected]> --- commit c9e3ad6021e5eeb1c25cc4a573bd6427019a7a86 tree 2bc2b07af5e4c361a6e6df6e0023d1619b0c4f2d parent 5986a2ec35836a878350c54af4bd91b1de6abc59 author Dave Kleikamp <[email protected]> Fri, 09 Feb 2007 15:36:47 -0600 committer Dave Kleikamp <[email protected]> Fri, 09 Feb 2007 15:36:47 -0600 fs/jfs/jfs_txnmgr.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c index 6988a10..03893ac 100644 --- a/fs/jfs/jfs_txnmgr.c +++ b/fs/jfs/jfs_txnmgr.c @@ -1919,7 +1919,8 @@ static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, * header ? */ if (tlck->type & tlckTRUNCATE) { - pxd_t pxd; /* truncated extent of xad */ + /* This odd declaration suppresses a bogus gcc warning */ + pxd_t pxd = pxd; /* truncated extent of xad */ int twm; /* ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV