summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2013-12-10 21:51:52 (GMT)
committerJason Evans <je@fb.com>2013-12-10 21:51:52 (GMT)
commit736923254409aed1a4a226e0ba7429f573c1f372 (patch)
treec289dd7e02a67e1dc706f69b00b470ae6a79a9d2 /src
parentb1941c615023cab9baf0a78a28df1e3b4972434f (diff)
downloadjemalloc-736923254409aed1a4a226e0ba7429f573c1f372.zip
jemalloc-736923254409aed1a4a226e0ba7429f573c1f372.tar.gz
jemalloc-736923254409aed1a4a226e0ba7429f573c1f372.tar.bz2
Silence some unused variable warnings.
Diffstat (limited to 'src')
-rw-r--r--src/jemalloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c
index 57a5e35..f13a7d8 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -1106,7 +1106,7 @@ je_realloc(void *ptr, size_t size)
void *ret;
size_t usize JEMALLOC_CC_SILENCE_INIT(0);
size_t old_size = 0;
- size_t old_rzsize JEMALLOC_CC_SILENCE_INIT(0);
+ UNUSED size_t old_rzsize JEMALLOC_CC_SILENCE_INIT(0);
prof_thr_cnt_t *cnt JEMALLOC_CC_SILENCE_INIT(NULL);
prof_ctx_t *old_ctx JEMALLOC_CC_SILENCE_INIT(NULL);
@@ -1256,7 +1256,7 @@ je_free(void *ptr)
UTRACE(ptr, 0, 0);
if (ptr != NULL) {
size_t usize;
- size_t rzsize JEMALLOC_CC_SILENCE_INIT(0);
+ UNUSED size_t rzsize JEMALLOC_CC_SILENCE_INIT(0);
assert(malloc_initialized || IS_INITIALIZER);
@@ -1504,7 +1504,7 @@ je_rallocm(void **ptr, size_t *rsize, size_t size, size_t extra, int flags)
void *p, *q;
size_t usize;
size_t old_size;
- size_t old_rzsize JEMALLOC_CC_SILENCE_INIT(0);
+ UNUSED size_t old_rzsize JEMALLOC_CC_SILENCE_INIT(0);
size_t alignment = (ZU(1) << (flags & ALLOCM_LG_ALIGN_MASK)
& (SIZE_T_MAX-1));
bool zero = flags & ALLOCM_ZERO;
@@ -1651,7 +1651,7 @@ int
je_dallocm(void *ptr, int flags)
{
size_t usize;
- size_t rzsize JEMALLOC_CC_SILENCE_INIT(0);
+ UNUSED size_t rzsize JEMALLOC_CC_SILENCE_INIT(0);
unsigned arena_ind = ((unsigned)(flags >> 8)) - 1;
bool try_tcache;