From f5ed7160bfbde413fc36e9aeeae8f6065a1f2f8c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 30 May 2026 22:45:33 -0400 Subject: [PATCH] stdinc: make SDL_stack_free evaluate to `((void)(data))` when alloca is usable. Fixes #15727. (cherry picked from commit 67e6f5b7ee488dfc3cf4b33620b220ae72ff845e) --- include/SDL3/SDL_stdinc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h index 205f9bc3b6..1f09176173 100644 --- a/include/SDL3/SDL_stdinc.h +++ b/include/SDL3/SDL_stdinc.h @@ -1306,7 +1306,7 @@ extern "C" { #define SDL_stack_free(data) #elif !defined(SDL_DISABLE_ALLOCA) #define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count)) -#define SDL_stack_free(data) +#define SDL_stack_free(data) ((void)(data)) #else #define SDL_stack_alloc(type, count) (type*)SDL_malloc(sizeof(type)*(count)) #define SDL_stack_free(data) SDL_free(data)