Browse Source

Fixed error: variable 'nfences' set but not used

Sam Lantinga 7 months ago
parent
commit
8b0798a3da
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/stdlib/SDL_malloc.c

+ 1 - 0
src/stdlib/SDL_malloc.c

@@ -4046,6 +4046,7 @@ static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {
     else
       break;
   }
+  (void)nfences;
   assert(nfences >= 2);
 
   /* Insert the rest of old top into a bin as an ordinary free chunk */