diff options
author | Chad Austin <aegis@aegisknight.org> | 2012-07-12 14:44:24 -0700 |
---|---|---|
committer | Chad Austin <chad@chadaustin.me> | 2012-09-25 16:57:09 -0700 |
commit | e17141bff8ed972913219819ca09157f135d48b0 (patch) | |
tree | 60305c0ec86ba36e9c378c570a5bc449a4aa8f75 | |
parent | ac36f1a7237e1e804d7f07bed4226a3f5a3320d8 (diff) |
Fix a warning under -Wall
-rw-r--r-- | system/lib/dlmalloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/system/lib/dlmalloc.c b/system/lib/dlmalloc.c index 6185b1c7..39bf9a71 100644 --- a/system/lib/dlmalloc.c +++ b/system/lib/dlmalloc.c @@ -4141,6 +4141,7 @@ static int sys_trim(mstate m, size_t pad) { sp->size >= extra && !has_segment_link(m, sp)) { /* can't shrink if pinned */ size_t newsize = sp->size - extra; + (void)newsize; /* Prefer mremap, fall back to munmap */ if ((CALL_MREMAP(sp->base, sp->size, newsize, 0) != MFAIL) || (CALL_MUNMAP(sp->base + newsize, extra) == 0)) { |