From: Nathan Scott Date: Fri, 13 Apr 2001 00:04:55 +0000 (+0000) Subject: newer version of gcc picks up a couple more warnings. X-Git-Tag: Release-1_0_0~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9fe055abc258a25997c9b3a1b942be4fb29371a2;p=thirdparty%2Fxfsprogs-dev.git newer version of gcc picks up a couple more warnings. --- diff --git a/libxfs/logitem.c b/libxfs/logitem.c index b26106088..abae49081 100644 --- a/libxfs/logitem.c +++ b/libxfs/logitem.c @@ -49,7 +49,7 @@ xfs_trans_add_item(xfs_trans_t *tp, xfs_log_item_t *lip) { xfs_log_item_desc_t *lidp; xfs_log_item_chunk_t *licp; - int i; + int i = 0; /* * If there are no free descriptors, allocate a new chunk diff --git a/libxfs/xfs_dir2_node.c b/libxfs/xfs_dir2_node.c index 6754cb8d1..743923f15 100644 --- a/libxfs/xfs_dir2_node.c +++ b/libxfs/xfs_dir2_node.c @@ -1323,10 +1323,10 @@ xfs_dir2_node_addname_int( xfs_dabuf_t *fbp; /* freespace buffer */ int findex; /* freespace entry index */ xfs_dir2_db_t foundbno=0; /* found freespace block no */ - int foundindex; /* found freespace entry idx */ + int foundindex=0; /* found freespace entry idx */ xfs_dir2_free_t *free=NULL; /* freespace block structure */ xfs_dir2_db_t ifbno; /* initial freespace block no */ - xfs_dir2_db_t lastfbno; /* highest freespace block no */ + xfs_dir2_db_t lastfbno=0; /* highest freespace block no */ int length; /* length of the new entry */ int logfree; /* need to log free entry */ xfs_mount_t *mp; /* filesystem mount point */