Browse Source

SDL_malloc.c: fix variable 'used' set but not used

Emitted by clang-cl
Anonymous Maarten 2 years ago
parent
commit
b51a88a95c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/stdlib/SDL_malloc.c

+ 2 - 0
src/stdlib/SDL_malloc.c

@@ -3017,6 +3017,8 @@ internal_malloc_stats(mstate m)
                 (unsigned long) (maxfp));
         fprintf(stderr, "system bytes     = %10lu\n", (unsigned long) (fp));
         fprintf(stderr, "in use bytes     = %10lu\n", (unsigned long) (used));
+#else
+        (void)used;
 #endif
 
         POSTACTION(m);