Commit b51a88a95c27823cccdc02d96d7bc05ce912bd8d

Anonymous Maarten 2022-10-06T02:23:57

SDL_malloc.c: fix variable 'used' set but not used Emitted by clang-cl

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/stdlib/SDL_malloc.c b/src/stdlib/SDL_malloc.c
index 1e986f6..093a2a0 100644
--- a/src/stdlib/SDL_malloc.c
+++ b/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);