From: Richard Barnes Date: Sun, 15 Sep 2024 11:39:51 +0000 (-0400) Subject: Suppress unused variable warning in dlmalloc.c (#843) X-Git-Tag: upstream/3.4.7~13^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=348e70ef1c785b85e194e47d47b7c4c2b1cec861;p=platform%2Fupstream%2Flibffi.git Suppress unused variable warning in dlmalloc.c (#843) Allows `-Wunused-but-set-variable` to pass --- diff --git a/src/dlmalloc.c b/src/dlmalloc.c index c61ef92..17193a0 100644 --- a/src/dlmalloc.c +++ b/src/dlmalloc.c @@ -3388,6 +3388,7 @@ static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) { mchunkptr tnext = chunk_plus_offset(sp, ssize); mchunkptr p = tnext; int nfences = 0; + (void)nfences; // Suppress unused variable warning /* reset top to new space */ init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);