glx: update fallthrough comments
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 24 Nov 2020 10:38:41 +0000 (11:38 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 1 Dec 2020 09:04:41 +0000 (10:04 +0100)
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7747>

src/glx/indirect_vertex_array.c

index fb4ac4d05de42e4d095c1cc019c8f79bfc475ef9..ea22b818991dadc1827542f90e63abfcff68d193 100644 (file)
@@ -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: