From dd34cdbfa4716f5f98a37831b59bfb2ae12249da Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Fri, 4 Nov 2022 19:31:22 +0800 Subject: [PATCH] svga: Fixes -Werror,-Wunused-but-set-variable for clang-15 in svga/svga_tgsi_vgpu10.c error message: ../../src/gallium/drivers/svga/svga_tgsi_vgpu10.c:5199:13: error: variable 'indicesMask' set but not used [-Werror,-Wunused-but-set-variable] unsigned indicesMask = 0; ^ Signed-off-by: Yonggang Luo Reviewed-by: Jose Fonseca Part-of: --- src/gallium/drivers/svga/svga_tgsi_vgpu10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c index f0d4ccc6a8f..cf227579ff0 100644 --- a/src/gallium/drivers/svga/svga_tgsi_vgpu10.c +++ b/src/gallium/drivers/svga/svga_tgsi_vgpu10.c @@ -5196,7 +5196,7 @@ emit_tcs_input_declarations(struct svga_shader_emitter_v10 *emit) { unsigned i; unsigned size = emit->key.tcs.vertices_per_patch; - unsigned indicesMask = 0; + UNUSED unsigned indicesMask = 0; boolean addSignature = TRUE; if (!emit->tcs.control_point_phase)