From e98fc8972d53fa8d9f15a90cf88b41d3ab184ccb Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 10 Sep 2017 12:54:40 -0700 Subject: [PATCH] Fixed bug 3812 - Fallthrough warnings gcc-7 --- src/render/software/SDL_draw.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/render/software/SDL_draw.h b/src/render/software/SDL_draw.h index 6a7590ab1..fb8b3821d 100644 --- a/src/render/software/SDL_draw.h +++ b/src/render/software/SDL_draw.h @@ -562,10 +562,10 @@ do { \ while (height--) { \ { int n = (width+3)/4; \ switch (width & 3) { \ - case 0: do { op; pixel++; \ - case 3: op; pixel++; \ - case 2: op; pixel++; \ - case 1: op; pixel++; \ + case 0: do { op; pixel++; /* fallthrough */ \ + case 3: op; pixel++; /* fallthrough */ \ + case 2: op; pixel++; /* fallthrough */ \ + case 1: op; pixel++; /* fallthrough */ \ } while ( --n > 0 ); \ } \ } \