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 (firstname.lastname@example.org)
COMMIT: http://review.gluster.org/13591 committed in master by Jeff Darcy (email@example.com)
Author: Raghavendra Talur <firstname.lastname@example.org>
Date: Thu Mar 3 16:09:27 2016 +0530
tier: Fix unused-but-set-variable warning
Signed-off-by: Raghavendra Talur <email@example.com>
Reviewed-by: hari gowtham <firstname.lastname@example.org>
Smoke: Gluster Build System <email@example.com>
NetBSD-regression: NetBSD Build System <firstname.lastname@example.org>
CentOS-regression: Gluster Build System <email@example.com>
Reviewed-by: Jeff Darcy <firstname.lastname@example.org>
*** 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.