From 369c49cdcf912d3fcfe6d2994605f76e2b00c671 Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 14 Jan 2021 03:45:29 -0500 Subject: [PATCH] [client] render/opengl: remove braces so fallthrough comment is recognized gcc -Wimplicit-fallthrough only detects comments if they are immediately preceded before the next label. Braces stops it from recognizing the fallthrough comment. --- client/renderers/OpenGL/opengl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/renderers/OpenGL/opengl.c b/client/renderers/OpenGL/opengl.c index 5041c7a9..8e19d502 100644 --- a/client/renderers/OpenGL/opengl.c +++ b/client/renderers/OpenGL/opengl.c @@ -1109,7 +1109,6 @@ static void update_mouse_shape(struct Inst * this, bool * newShape) switch(cursor) { case LG_CURSOR_MASKED_COLOR: - { for(int i = 0; i < width * height; ++i) { const uint32_t c = ((uint32_t *)data)[i]; @@ -1120,7 +1119,6 @@ static void update_mouse_shape(struct Inst * this, bool * newShape) // // technically we should also create an XOR texture from the data but this // usage seems very rare in modern software. - } case LG_CURSOR_COLOR: {