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.

This commit is contained in:
krnl32 authored and Sam Lantinga committed 2025-09-16 17:16:50 -07:00
1 parent 07c3b3fb7c
commit 9859c05178
1 file changed
+1
+1
View File
@@ -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;