Skip to content

Commit

Permalink
Fix "unannotated fallthrough between switch labels" warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Mar 16, 2022
1 parent 8ceccf4 commit dcf6c24
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion external/SDL2/SDL_stdinc.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,14 @@ SDL_FORCE_INLINE void SDL_memset4(void *dst, int val, size_t len)
return;
switch (len % 4)
{
case 0: do { *_p++ = _val;
case 0:
[[fallthrough]];
do { *_p++ = _val;
[[fallthrough]];
case 3: *_p++ = _val;
[[fallthrough]];
case 2: *_p++ = _val;
[[fallthrough]];
case 1: *_p++ = _val;
} while ( --_n );
}
Expand Down

0 comments on commit dcf6c24

Please sign in to comment.