mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Do not warn if a "for" initializer is empty.
It is perfectly valid. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
193218f54e
commit
82c659539f
@@ -2464,8 +2464,6 @@ loop_statement:
|
|||||||
}
|
}
|
||||||
| KW_FOR '(' scope_start declaration expr_statement expr ')' statement
|
| KW_FOR '(' scope_start declaration expr_statement expr ')' statement
|
||||||
{
|
{
|
||||||
if (!$4)
|
|
||||||
hlsl_warning(ctx, @4, "no expressions in for loop initializer");
|
|
||||||
$$ = create_loop(LOOP_FOR, $4, $5, $6, $8, @1);
|
$$ = create_loop(LOOP_FOR, $4, $5, $6, $8, @1);
|
||||||
hlsl_pop_scope(ctx);
|
hlsl_pop_scope(ctx);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user