aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_sf.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sgi.com>2005-11-01 23:06:18 -0500
committerNathan Scott <nathans@sgi.com>2005-11-01 23:06:18 -0500
commit5bde1ba99c8243617277f37897189c799e398baf (patch)
treed41b5f972c3b7f07cd0ea3af7c3f2775208e4f40 /fs/xfs/xfs_dir2_sf.c
parent9dac13e7ffddf40c7bf1bf8bf4f735af6c3d31ec (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_dir2_sf.c')
-rw-r--r--fs/xfs/xfs_dir2_sf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_dir2_sf.c b/fs/xfs/xfs_dir2_sf.c
index 6504afc54a55..ec8e7476c8b7 100644
--- a/fs/xfs/xfs_dir2_sf.c
+++ b/fs/xfs/xfs_dir2_sf.c
@@ -86,7 +86,7 @@ xfs_dir2_block_sfsize(
86 int isdotdot; /* entry is ".." */ 86 int isdotdot; /* entry is ".." */
87 xfs_mount_t *mp; /* mount structure pointer */ 87 xfs_mount_t *mp; /* mount structure pointer */
88 int namelen; /* total name bytes */ 88 int namelen; /* total name bytes */
89 xfs_ino_t parent; /* parent inode number */ 89 xfs_ino_t parent = 0; /* parent inode number */
90 int size=0; /* total computed size */ 90 int size=0; /* total computed size */
91 91
92 mp = dp->i_mount; 92 mp = dp->i_mount;
@@ -277,11 +277,11 @@ xfs_dir2_sf_addname(
277 int incr_isize; /* total change in size */ 277 int incr_isize; /* total change in size */
278 int new_isize; /* di_size after adding name */ 278 int new_isize; /* di_size after adding name */
279 int objchange; /* changing to 8-byte inodes */ 279 int objchange; /* changing to 8-byte inodes */
280 xfs_dir2_data_aoff_t offset; /* offset for new entry */ 280 xfs_dir2_data_aoff_t offset = 0; /* offset for new entry */
281 int old_isize; /* di_size before adding name */ 281 int old_isize; /* di_size before adding name */
282 int pick; /* which algorithm to use */ 282 int pick; /* which algorithm to use */
283 xfs_dir2_sf_t *sfp; /* shortform structure */ 283 xfs_dir2_sf_t *sfp; /* shortform structure */
284 xfs_dir2_sf_entry_t *sfep; /* shortform entry */ 284 xfs_dir2_sf_entry_t *sfep = NULL; /* shortform entry */
285 285
286 xfs_dir2_trace_args("sf_addname", args); 286 xfs_dir2_trace_args("sf_addname", args);
287 ASSERT(xfs_dir2_sf_lookup(args) == ENOENT); 287 ASSERT(xfs_dir2_sf_lookup(args) == ENOENT);