From 494d310a78fb423559d520040eebd8f091d3e529 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Mon, 22 Aug 2016 12:11:24 -0400 Subject: core: fix unused variable warnings/errors http://review.gluster.org/14085 fixes a/the "leak" - via the generated rpc/xdr headers - of pragmas that mask these warnings. However 14085 won't pass the smoke test until all the warnings are fixed. Change-Id: I16e55ad7afbddaee0d0e30acf1480e42adf96da4 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: http://review.gluster.org/15243 Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Poornima G NetBSD-regression: NetBSD Build System Reviewed-by: Jeff Darcy --- xlators/debug/io-stats/src/io-stats.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xlators/debug/io-stats') diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index 1d3c9b9af93..98896185b42 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -3045,7 +3045,6 @@ io_stats_setxattr (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *dict, int32_t flags, dict_t *xdata) { - int ret = 0; struct { xlator_t *this; inode_t *inode; @@ -3056,8 +3055,8 @@ io_stats_setxattr (call_frame_t *frame, xlator_t *this, stub.inode = loc->inode; stub.path = loc->path; - ret = dict_foreach_match (dict, match_special_xattr, NULL, - conditional_dump, &stub); + (void) dict_foreach_match (dict, match_special_xattr, NULL, + conditional_dump, &stub); START_FOP_LATENCY (frame); -- cgit