Mesa (master): glx: update fallthrough comments
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Dec 1 09:34:59 UTC 2020
Module: Mesa
Branch: master
Commit: e2e383e36a08e3d536b22c4825e0486499739e97
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e2e383e36a08e3d536b22c4825e0486499739e97
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Tue Nov 24 11:38:41 2020 +0100
glx: update fallthrough comments
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7747>
---
src/glx/indirect_vertex_array.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/glx/indirect_vertex_array.c b/src/glx/indirect_vertex_array.c
index fb4ac4d05de..ea22b818991 100644
--- a/src/glx/indirect_vertex_array.c
+++ b/src/glx/indirect_vertex_array.c
@@ -27,6 +27,8 @@
#include <assert.h>
#include <string.h>
+#include "util/compiler.h"
+
#include "glxclient.h"
#include "indirect.h"
#include <GL/glxproto.h>
@@ -1749,7 +1751,7 @@ __indirect_glVertexAttribPointerNV(GLuint index, GLint size,
return;
}
normalized = GL_TRUE;
- /* fallthrough */
+ FALLTHROUGH;
case GL_SHORT:
case GL_FLOAT:
case GL_DOUBLE:
More information about the mesa-commit
mailing list