From 58706474ec4346f187707807a2c20c65558e54a1 Mon Sep 17 00:00:00 2001 From: Francisco Casas Date: Fri, 11 Apr 2025 14:24:47 -0400 Subject: [PATCH] vkd3d-shader/hlsl: Make struct_declaration_without_vars return void. --- libs/vkd3d-shader/hlsl.y | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y index 6086d018f..866602179 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -6766,7 +6766,6 @@ static void validate_uav_type(struct hlsl_ctx *ctx, enum hlsl_sampler_dim dim, %type selection_statement %type statement %type statement_list -%type struct_declaration_without_vars %type switch_statement %type unary_expr @@ -7021,9 +7020,6 @@ struct_declaration_without_vars: if ($1) hlsl_error(ctx, &@1, VKD3D_SHADER_ERROR_HLSL_INVALID_MODIFIER, "Modifiers are not allowed on struct type declarations."); - - if (!($$ = make_empty_block(ctx))) - YYABORT; } struct_spec: @@ -8144,6 +8140,10 @@ type: declaration_statement: declaration | struct_declaration_without_vars + { + if (!($$ = make_empty_block(ctx))) + YYABORT; + } | typedef { if (!($$ = make_empty_block(ctx)))