[Bugs] [Bug 1314548] New: tier: GCC throws Unused variable warning for conf in tier_link_cbk function

bugzilla at redhat.com bugzilla at redhat.com
Thu Mar 3 21:28:26 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1314548

            Bug ID: 1314548
           Summary: tier:  GCC throws Unused variable warning for conf in
                    tier_link_cbk function
           Product: GlusterFS
           Version: 3.7.8
         Component: tiering
          Assignee: bugs at gluster.org
          Reporter: rtalur at redhat.com
        QA Contact: bugs at gluster.org
                CC: bugs at gluster.org
        Depends On: 1314291



+++ This bug was initially created as a clone of Bug #1314291 +++

Description of problem:
When compiled on F23, we see warning for unused variable.

/home/jenkins/root/workspace/Manually_triggered_regression/xlators/cluster/dht/src/tier-common.c:
In function ‘tier_link_cbk’:
10:37:27
/home/jenkins/root/workspace/Manually_triggered_regression/xlators/cluster/dht/src/tier-common.c:33:23:
warning: variable ‘conf’ set but not used [-Wunused-but-set-variable]
10:37:27          dht_conf_t   *conf   = NULL;

--- Additional comment from Vijay Bellur on 2016-03-03 16:18:18 IST ---

REVIEW: http://review.gluster.org/13591 (tier: Fix unused-but-set-variable
warning) posted (#1) for review on master by Raghavendra Talur
(rtalur at redhat.com)

--- Additional comment from Vijay Bellur on 2016-03-03 21:05:16 IST ---

COMMIT: http://review.gluster.org/13591 committed in master by Jeff Darcy
(jdarcy at redhat.com) 
------
commit 6a406b87aa3cd8c086e998fe681197915bd436c2
Author: Raghavendra Talur <rtalur at redhat.com>
Date:   Thu Mar 3 16:09:27 2016 +0530

    tier: Fix unused-but-set-variable warning

    Change-Id: Ie5eaf1075b1c9c29dd7d85bf7b61b22e1fbce422
    BUG: 1314291
    Signed-off-by: Raghavendra Talur <rtalur at redhat.com>
    Reviewed-on: http://review.gluster.org/13591
    Reviewed-by: hari gowtham <hari.gowtham005 at gmail.com>
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Jeff Darcy <jdarcy at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1314291
[Bug 1314291] tier:  GCC throws Unused variable warning for conf in
tier_link_cbk function
-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list