From: Timothy Arceri Date: Wed, 1 Jul 2020 05:10:34 +0000 (+1000) Subject: mesa: add fallthrough comments to COPY_SZ_4V() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c4d9816acfa082539343dddbb94876e9be9eb80;p=mesa.git mesa: add fallthrough comments to COPY_SZ_4V() Reviewed-by: Marek Olšák Part-of: --- 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