vkd3d-shader/hlsl: Silence a spurious -Wmaybe-uninitialized in sm4_generate_vsir_instr_dcl_semantic().

This commit is contained in:
Elizabeth Figura 2024-11-13 18:32:40 -06:00 committed by Henri Verbeet
parent 72394d9ae3
commit 683e11aece
Notes: Henri Verbeet 2024-11-14 14:23:37 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1264

View File

@ -7704,8 +7704,8 @@ static void sm4_generate_vsir_instr_dcl_semantic(struct hlsl_ctx *ctx, struct vs
struct vkd3d_shader_instruction *ins; struct vkd3d_shader_instruction *ins;
enum vkd3d_shader_register_type type; enum vkd3d_shader_register_type type;
enum vkd3d_shader_opcode opcode; enum vkd3d_shader_opcode opcode;
unsigned int idx = 0;
uint32_t write_mask; uint32_t write_mask;
unsigned int idx;
bool has_idx; bool has_idx;
sm4_sysval_semantic_from_semantic_name(&semantic, version, ctx->semantic_compat_mapping, sm4_sysval_semantic_from_semantic_name(&semantic, version, ctx->semantic_compat_mapping,