From 0efcafc74df0866c6de895ce845dc551a323f80c Mon Sep 17 00:00:00 2001 From: krnl32 Date: Tue, 16 Sep 2025 13:48:27 -0400 Subject: [PATCH] Added a default case to the switch statement in the HEADER FILE to prevent compiler warnings about missing defaults. This change helps avoid compilation breaks when warnings are treated as errors. (cherry picked from commit 9859c051781771015356e31f941bab40a763bea9) --- include/SDL_stdinc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 1854698b60..088e6444b8 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -565,6 +565,7 @@ SDL_FORCE_INLINE void SDL_memset4(void *dst, Uint32 val, size_t dwords) return; } switch (dwords % 4) { + default: case 0: do { *_p++ = _val; SDL_FALLTHROUGH; case 3: *_p++ = _val; SDL_FALLTHROUGH; case 2: *_p++ = _val; SDL_FALLTHROUGH;