]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
newer version of gcc picks up a couple more warnings.
authorNathan Scott <nathans@sgi.com>
Fri, 13 Apr 2001 00:04:55 +0000 (00:04 +0000)
committerNathan Scott <nathans@sgi.com>
Fri, 13 Apr 2001 00:04:55 +0000 (00:04 +0000)
libxfs/logitem.c
libxfs/xfs_dir2_node.c

index b26106088721d246f60a1a54d250e86babbc8270..abae490816cf263a17f262c2a489745aa37a34ab 100644 (file)
@@ -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
index 6754cb8d15f09b2da3a16908c199dcffcfd9a65a..743923f157aa3a4badc7106623934a81041d7b78 100644 (file)
@@ -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 */