From da2aabe3334a9169b2c64cca317f58af21c2fc35 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Thu, 15 Sep 2016 22:53:09 -0400 Subject: 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 Reviewed-on: http://review.gluster.org/15516 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- libglusterfs/src/mem-pool.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libglusterfs/src') 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) -- cgit