diff options
author | Kaleb S. KEITHLEY <kkeithle@redhat.com> | 2016-08-22 12:15:14 -0400 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2016-08-27 04:17:49 -0700 |
commit | be93ca2b9f3f1bb5d38b0fd306c19c4b3d0923f7 (patch) | |
tree | 6f4aeec1124a3330188503f2ec7b6c3337d8684c /xlators/protocol/server/src/server-resolve.c | |
parent | 3cc7f6588c281846f8c590553da03dd16f150e8a (diff) |
protocol/server: 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: I5a48055c4b0a4a07dd511ad4f2e9ef823b9c60b2
BUG: 1369124
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/15255
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/protocol/server/src/server-resolve.c')
-rw-r--r-- | xlators/protocol/server/src/server-resolve.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c index 1ad45394dd7..d0126aa63e3 100644 --- a/xlators/protocol/server/src/server-resolve.c +++ b/xlators/protocol/server/src/server-resolve.c @@ -30,8 +30,6 @@ resolve_loc_touchup (call_frame_t *frame) server_state_t *state = NULL; server_resolve_t *resolve = NULL; loc_t *loc = NULL; - char *path = NULL; - int ret = 0; state = CALL_STATE (frame); @@ -192,7 +190,6 @@ resolve_gfid (call_frame_t *frame) xlator_t *this = NULL; server_resolve_t *resolve = NULL; loc_t *resolve_loc = NULL; - int ret = 0; dict_t *xdata = NULL; state = CALL_STATE (frame); @@ -207,7 +204,7 @@ resolve_gfid (call_frame_t *frame) resolve_loc->inode = server_inode_new (state->itable, resolve_loc->gfid); - ret = loc_path (resolve_loc, NULL); + (void) loc_path (resolve_loc, NULL); if (state->xdata) { xdata = dict_copy_with_ref (state->xdata, NULL); |