[Mesa-dev] [PATCH 2/3] glsl: add fallthrough comment on switch

Tapani Pälli tapani.palli at intel.com
Mon Apr 20 22:27:50 PDT 2015


Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
 src/glsl/linker.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index b6baa5d..08b4137 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -2571,6 +2571,7 @@ add_interface_variables(struct gl_shader_program *shProg,
              var->data.location != SYSTEM_VALUE_VERTEX_ID_ZERO_BASE &&
              var->data.location != SYSTEM_VALUE_INSTANCE_ID)
          continue;
+         /* FALLTHROUGH */
       case ir_var_shader_in:
          if (programInterface != GL_PROGRAM_INPUT)
             continue;
-- 
2.1.0



More information about the mesa-dev mailing list