summaryrefslogtreecommitdiff
path: root/include/SDL_stdinc.h
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2017-09-06 04:32:30 -0700
committerSam Lantinga <slouken@libsdl.org>2017-09-06 04:32:30 -0700
commitbeb6faa78592bab62023f136780390a4b63190aa (patch)
treeba3cf31e3ac1a3b8c01d22d53c111c24d18209df /include/SDL_stdinc.h
parent1c6b002cbd23c37d4f15c4f085d9aeea1e9324f2 (diff)
downloadsdl-beb6faa78592bab62023f136780390a4b63190aa.tar.gz
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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h
index 38c8876f5..546544f10 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