From a8a88a8d39982cd304808df51028e5ff14eca359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Tue, 13 Apr 2021 17:44:50 +0200 Subject: [PATCH] llvmpipe: Drop switch with only default case Replace it with the default case contents. Avoids clang warning about the fall-through annotation. Reviewed-by: Eric Anholt Part-of: --- src/gallium/drivers/llvmpipe/lp_screen.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 0f7083b5c38..98ffcdc34ef 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -377,11 +377,8 @@ llvmpipe_get_shader_param(struct pipe_screen *screen, else return PIPE_SHADER_IR_NIR; } - switch (param) { - default: - return gallivm_get_shader_param(param); - } - FALLTHROUGH; + + return gallivm_get_shader_param(param); case PIPE_SHADER_TESS_CTRL: case PIPE_SHADER_TESS_EVAL: /* Tessellation shader needs llvm coroutines support */