mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08: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:
parent
193218f54e
commit
82c659539f
@ -2464,8 +2464,6 @@ loop_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);
|
||||
hlsl_pop_scope(ctx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user