Skip to content

Commit

Permalink
Suppress unused variable warning in dlmalloc.c (#843)
Browse files Browse the repository at this point in the history
Allows `-Wunused-but-set-variable` to pass
  • Loading branch information
r-barnes authored Sep 15, 2024
1 parent 30e887f commit 348e70e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dlmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 348e70e

Please sign in to comment.