X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00, FH_DATE_PAST_20XX,J_CHICKENPOX_53 autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id o0J0a67m142246 for ; Mon, 18 Jan 2010 18:36:07 -0600 X-ASG-Debug-ID: 1263861424-7f4801a60000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 181861C5C7CE for ; Mon, 18 Jan 2010 16:37:04 -0800 (PST) Received: from mail.internode.on.net (bld-mail19.adl2.internode.on.net [150.101.137.104]) by cuda.sgi.com with ESMTP id t9YwjNDK8UlAq0Fi for ; Mon, 18 Jan 2010 16:37:04 -0800 (PST) Received: from discord (unverified [121.44.156.64]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 11448820-1927428 for ; Tue, 19 Jan 2010 11:07:03 +1030 (CDT) Received: from [192.168.1.6] (helo=disturbed) by discord with esmtp (Exim 4.69) (envelope-from ) id 1NX25e-0003EY-26 for xfs@oss.sgi.com; Tue, 19 Jan 2010 11:37:02 +1100 Received: from dave by disturbed with local (Exim 4.71) (envelope-from ) id 1NX25d-0003aS-E2 for xfs@oss.sgi.com; Tue, 19 Jan 2010 11:37:01 +1100 From: Dave Chinner To: xfs@oss.sgi.com X-ASG-Orig-Subj: [PATCH 3/7] xfsprogs: fix some trivial warnings in xfs_db Subject: [PATCH 3/7] xfsprogs: fix some trivial warnings in xfs_db Date: Tue, 19 Jan 2010 11:36:49 +1100 Message-Id: <1263861413-13729-4-git-send-email-david@fromorbit.com> X-Mailer: git-send-email 1.6.5 In-Reply-To: <1263861413-13729-1-git-send-email-david@fromorbit.com> References: <1263861413-13729-1-git-send-email-david@fromorbit.com> X-Barracuda-Connect: bld-mail19.adl2.internode.on.net[150.101.137.104] X-Barracuda-Start-Time: 1263861426 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.20187 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean 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 Reviewed-by: Christoph Hellwig --- 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