From 5c4d9816acfa082539343dddbb94876e9be9eb80 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Wed, 1 Jul 2020 15:10:34 +1000 Subject: [PATCH] mesa: add fallthrough comments to COPY_SZ_4V() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/mesa/main/macros.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index caa310fd021..bd07fa71bc6 100644 --- a/src/mesa/main/macros.h +++ b/src/mesa/main/macros.h @@ -304,14 +304,14 @@ COPY_4UBV(GLubyte dst[4], const GLubyte src[4]) } /** Copy \p SZ elements into a 4-element vector */ -#define COPY_SZ_4V(DST, SZ, SRC) \ -do { \ - switch (SZ) { \ - case 4: (DST)[3] = (SRC)[3]; \ - case 3: (DST)[2] = (SRC)[2]; \ - case 2: (DST)[1] = (SRC)[1]; \ - case 1: (DST)[0] = (SRC)[0]; \ - } \ +#define COPY_SZ_4V(DST, SZ, SRC) \ +do { \ + switch (SZ) { \ + case 4: (DST)[3] = (SRC)[3]; /* fallthrough */ \ + case 3: (DST)[2] = (SRC)[2]; /* fallthrough */ \ + case 2: (DST)[1] = (SRC)[1]; /* fallthrough */ \ + case 1: (DST)[0] = (SRC)[0]; /* fallthrough */ \ + } \ } while(0) /** Copy \p SZ elements into a homegeneous (4-element) vector, giving -- 2.30.2