From b51a88a95c27823cccdc02d96d7bc05ce912bd8d Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 6 Oct 2022 02:23:57 +0200 Subject: [PATCH] SDL_malloc.c: fix variable 'used' set but not used Emitted by clang-cl --- src/stdlib/SDL_malloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdlib/SDL_malloc.c b/src/stdlib/SDL_malloc.c index 1e986f615..093a2a0e9 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);