xfs
[Top] [All Lists]

[PATCH 5/9] xfsprogs: fix some trivial warnings in xfs_db

To: xfs@xxxxxxxxxxx
Subject: [PATCH 5/9] xfsprogs: fix some trivial warnings in xfs_db
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Thu, 14 Jan 2010 21:09:08 +1100
In-reply-to: <1263463752-5052-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1263463752-5052-1-git-send-email-david@xxxxxxxxxxxxx>
Three warnings, none harmful - one dir2 name sign warning and
two cases where gcc can't work out if a variable is initialised
correctly in a child function or not.

Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
---
 db/check.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/db/check.c b/db/check.c
index 7620d9c..f94a16b 100644
--- a/db/check.c
+++ b/db/check.c
@@ -2317,7 +2317,7 @@ process_data_dir_v2(
                tag_err += be16_to_cpu(*tagp) != (char *)dep - (char *)data;
                addr = xfs_dir2_db_off_to_dataptr(mp, db,
                        (char *)dep - (char *)data);
-               xname.name = (char *)dep->name;
+               xname.name = (uchar_t *)dep->name;
                xname.len = dep->namelen;
                dir_hash_add(mp->m_dirnameops->hashname(&xname), addr);
                ptr += xfs_dir2_data_entsize(dep->namelen);
@@ -3059,7 +3059,7 @@ process_leaf_node_dir_v2(
        xfs_ino_t               lino;
        int                     nex;
        xfs_ino_t               parent;
-       int                     t;
+       int                     t = 0;
        int                     v;
        int                     v2;
        int                     x;
@@ -3403,7 +3403,7 @@ process_quota(
        xfs_fileoff_t   qbno;
        char            *s = NULL;
        int             scicb;
-       int             t;
+       int             t = 0;
 
        switch (qtype) {
        case IS_USER_QUOTA:
-- 
1.6.5

<Prev in Thread] Current Thread [Next in Thread>