Skip to content

Commit 0efcafc

Browse files
krnl32slouken
authored andcommitted
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 9859c05)
1 parent dcc72b4 commit 0efcafc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/SDL_stdinc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ SDL_FORCE_INLINE void SDL_memset4(void *dst, Uint32 val, size_t dwords)
565565
return;
566566
}
567567
switch (dwords % 4) {
568+
default:
568569
case 0: do { *_p++ = _val; SDL_FALLTHROUGH;
569570
case 3: *_p++ = _val; SDL_FALLTHROUGH;
570571
case 2: *_p++ = _val; SDL_FALLTHROUGH;

0 commit comments

Comments
 (0)