From 5f48ce0b6403282f1f7e8a5cef2721f95f01e0f7 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 10 Sep 2017 12:49:41 -0700 Subject: [PATCH] Fixed bug 3815 - implicit-fallthrough warning - DUFFS_LOOP4 and friends --- src/video/SDL_blit.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/SDL_blit.h b/src/video/SDL_blit.h index 6f238abcb..736e78383 100644 --- a/src/video/SDL_blit.h +++ b/src/video/SDL_blit.h @@ -488,10 +488,10 @@ do { \ #define DUFFS_LOOP4(pixel_copy_increment, width) \ { int n = (width+3)/4; \ switch (width & 3) { \ - case 0: do { pixel_copy_increment; \ - case 3: pixel_copy_increment; \ - case 2: pixel_copy_increment; \ - case 1: pixel_copy_increment; \ + case 0: do { pixel_copy_increment; /* fallthrough */ \ + case 3: pixel_copy_increment; /* fallthrough */ \ + case 2: pixel_copy_increment; /* fallthrough */ \ + case 1: pixel_copy_increment; /* fallthrough */ \ } while (--n > 0); \ } \ }