summaryrefslogtreecommitdiffstats
path: root/xlators/features/upcall
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 12:14:33 -0400
committerNiels de Vos <ndevos@redhat.com>2016-08-25 05:11:31 -0700
commitafabb66f36b75db4d5aee46e694990b63f454133 (patch)
treece6f8b00c669d284f815e536c75279e06500cddd /xlators/features/upcall
parentc85a9ee3198ac63eaa035c8224e514d339bb068b (diff)
upcall: 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: I887aa033f00ab67f73c7d7a7f1b3054d43bffc49 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15252 Reviewed-by: Niels de Vos <ndevos@redhat.com> 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>
Diffstat (limited to 'xlators/features/upcall')
-rw-r--r--xlators/features/upcall/src/upcall-internal.c3
-rw-r--r--xlators/features/upcall/src/upcall.c1
2 files changed, 0 insertions, 4 deletions
diff --git a/xlators/features/upcall/src/upcall-internal.c b/xlators/features/upcall/src/upcall-internal.c
index f3c81aff15c..3cde56a7ce8 100644
--- a/xlators/features/upcall/src/upcall-internal.c
+++ b/xlators/features/upcall/src/upcall-internal.c
@@ -122,7 +122,6 @@ __get_upcall_client (call_frame_t *frame, client_t *client,
upcall_inode_ctx_t *up_inode_ctx)
{
upcall_client_t *up_client_entry = NULL;
- upcall_client_t *up_client = NULL;
upcall_client_t *tmp = NULL;
gf_boolean_t found_client = _gf_false;
@@ -461,7 +460,6 @@ upcall_cache_invalidate (call_frame_t *frame, xlator_t *this, client_t *client,
struct iatt *p_stbuf, struct iatt *oldp_stbuf,
dict_t *xattr)
{
- upcall_client_t *up_client = NULL;
upcall_client_t *up_client_entry = NULL;
upcall_client_t *tmp = NULL;
upcall_inode_ctx_t *up_inode_ctx = NULL;
@@ -630,7 +628,6 @@ out:
void
upcall_cache_forget (xlator_t *this, inode_t *inode, upcall_inode_ctx_t *up_inode_ctx)
{
- upcall_client_t *up_client = NULL;
upcall_client_t *up_client_entry = NULL;
upcall_client_t *tmp = NULL;
uint32_t flags = 0;
diff --git a/xlators/features/upcall/src/upcall.c b/xlators/features/upcall/src/upcall.c
index ea716214a56..a007d694099 100644
--- a/xlators/features/upcall/src/upcall.c
+++ b/xlators/features/upcall/src/upcall.c
@@ -2190,7 +2190,6 @@ int
notify (xlator_t *this, int32_t event, void *data, ...)
{
int ret = -1;
- int32_t val = 0;
struct gf_upcall *up_req = NULL;
switch (event) {