From: Dave Kleikamp Date: Fri, 9 Feb 2007 21:36:47 +0000 (-0600) Subject: JFS: Get rid of "may be used uninitialized" warnings X-Git-Tag: firefly_0821_release~30992^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c9e3ad6021e5eeb1c25cc4a573bd6427019a7a86;p=firefly-linux-kernel-4.4.55.git JFS: Get rid of "may be used uninitialized" warnings Signed-off-by: Dave Kleikamp --- diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c index 6988a1082f58..03893acbfda4 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; /*