From 9859c051781771015356e31f941bab40a763bea9 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. --- include/SDL_stdinc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 9385b88338..7590f5bd90 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -584,6 +584,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;