diff --git a/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c b/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c index d932a5cf5..d25419b9b 100644 --- a/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c +++ b/cogl/cogl/driver/gl/cogl-pipeline-fragend-glsl.c @@ -534,7 +534,7 @@ add_arg (CoglPipelineShaderState *shader_state, swizzle); break; } - /* flow through */ + G_GNUC_FALLTHROUGH; case COGL_PIPELINE_COMBINE_SOURCE_PRIMARY_COLOR: g_string_append_printf (shader_source, "cogl_color_in.%s", swizzle); break; diff --git a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c index 1780c3fbe..00f72fbab 100644 --- a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c +++ b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c @@ -133,8 +133,7 @@ _cogl_driver_pixel_format_to_gl (CoglContext *context, required_format = format; break; } - /* flow through */ - + G_GNUC_FALLTHROUGH; /* Just one 24-bit ordering supported */ case COGL_PIXEL_FORMAT_RGB_888: case COGL_PIXEL_FORMAT_BGR_888: @@ -155,6 +154,7 @@ _cogl_driver_pixel_format_to_gl (CoglContext *context, gltype = GL_UNSIGNED_INT_2_10_10_10_REV_EXT; break; } + G_GNUC_FALLTHROUGH; #endif case COGL_PIXEL_FORMAT_BGRA_1010102: case COGL_PIXEL_FORMAT_BGRA_1010102_PRE: