summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/mem-pool.c
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-09-15 22:53:09 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-09-16 00:07:09 -0700
commitda2aabe3334a9169b2c64cca317f58af21c2fc35 (patch)
tree79f4e9e65e781b4a21d3b4dc1d66e8ed8124dc40 /libglusterfs/src/mem-pool.c
parent660ca23dee3a0f1a7128d3777589467b27af514b (diff)
libglusterfs/mem-pool: fix unused variable warnings/errors
http://review.gluster.org/14085 fixes a "pragma leak" where the generated rpc/xdr headers have a pair of pragmas that disable these warnings. With the warnings disabled, many unused variables have crept into the code base. And 14085 won't pass its own smoke test until all these warnings are fixed. BUG: 1369124 Change-Id: I8885e4d4aa44307c240413ba6f35ecd59ab45444 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15516 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 'libglusterfs/src/mem-pool.c')
-rw-r--r--libglusterfs/src/mem-pool.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libglusterfs/src/mem-pool.c b/libglusterfs/src/mem-pool.c
index 5f2851033ec..78fecec4b0f 100644
--- a/libglusterfs/src/mem-pool.c
+++ b/libglusterfs/src/mem-pool.c
@@ -344,7 +344,6 @@ free:
int
gf_get_mem_type (void *ptr)
{
- struct mem_acct *mem_acct;
struct mem_header *header = NULL;
if (!ptr || !THIS->ctx->mem_acct_enable)