diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-09-25 17:13:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-09-25 17:13:52 -0700 |
commit | 566a7b4469243fea33ec502ba9b8e3debdf709cb (patch) | |
tree | d3e501436540edd7d1bc6fb8fd2e489d4d02b9a3 /system/lib/dlmalloc.c | |
parent | 8c057a9a985165e203c95401de7e137ac0ec5083 (diff) | |
parent | a3e58eff17b7be2a458db7337360e4e938b9c9e3 (diff) |
Merge pull request #591 from imvu/dlmalloc-warning-pull-request
Fix a warning under -Wall
Diffstat (limited to 'system/lib/dlmalloc.c')
-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..9ee3709e 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; // XXX EMSCRIPTEN /* Prefer mremap, fall back to munmap */ if ((CALL_MREMAP(sp->base, sp->size, newsize, 0) != MFAIL) || (CALL_MUNMAP(sp->base + newsize, extra) == 0)) { |