Red Hat Bugzilla – Bug 1314291
tier: GCC throws Unused variable warning for conf in tier_link_cbk function
Last modified: 2016-06-16 09:59:22 EDT
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;
REVIEW: http://review.gluster.org/13591 (tier: Fix unused-but-set-variable warning) posted (#1) for review on master by Raghavendra Talur (email@example.com)
COMMIT: http://review.gluster.org/13591 committed in master by Jeff Darcy (firstname.lastname@example.org)
Author: Raghavendra Talur <email@example.com>
Date: Thu Mar 3 16:09:27 2016 +0530
tier: Fix unused-but-set-variable warning
Signed-off-by: Raghavendra Talur <firstname.lastname@example.org>
Reviewed-by: hari gowtham <email@example.com>
Smoke: Gluster Build System <firstname.lastname@example.org>
NetBSD-regression: NetBSD Build System <email@example.com>
CentOS-regression: Gluster Build System <firstname.lastname@example.org>
Reviewed-by: Jeff Darcy <email@example.com>
*** Bug 1308863 has been marked as a duplicate of this bug. ***
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.
glusterfs-3.8.0 has been announced on the Gluster mailinglists , packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist  and the update infrastructure for your distribution.