diff options
author | Sam Lantinga <slouken@libsdl.org> | 2017-09-06 04:32:30 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2017-09-06 04:32:30 -0700 |
commit | ec6890cbb5c5a4211e48b457752bfba2ea00fb79 (patch) | |
tree | 8362b91b37d7ad9ab04253623bfb9d1d9622e00a /include/SDL_stdinc.h | |
parent | fc5665de443a0d7dcf2ac74418cac5cbcc6bbd0a (diff) |
Fixed bug 3780 - GCC 7 implicit fallthrough warnings
Martin Gerhardy 2017-08-28 06:58:01 UTC
SDL_blit.h, SDL_fillrect.c and SDL_stdinc.h produces a lot of the (new) gcc-7 implicit fallthrough warnings.
Diffstat (limited to 'include/SDL_stdinc.h')
-rw-r--r-- | include/SDL_stdinc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 38c8876f5c..546544f10d 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -389,10 +389,10 @@ SDL_FORCE_INLINE void SDL_memset4(void *dst, Uint32 val, size_t dwords) return; switch (dwords % 4) { - case 0: do { *_p++ = _val; - case 3: *_p++ = _val; - case 2: *_p++ = _val; - case 1: *_p++ = _val; + case 0: do { *_p++ = _val; /* fallthrough */ + case 3: *_p++ = _val; /* fallthrough */ + case 2: *_p++ = _val; /* fallthrough */ + case 1: *_p++ = _val; /* fallthrough */ } while ( --_n ); } #endif |