mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 09:48:07 +02:00
vc4: Add missing braces in initializer
Silences the following GCC warning:
mesa/src/gallium/drivers/vc4/vc4_qir_schedule.c: In function 'qir_schedule_instructions':
mesa/src/gallium/drivers/vc4/vc4_qir_schedule.c:578:16: warning: missing braces around initializer [-Wmissing-braces]
struct schedule_state state = { 0 };
^
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
c75ced3623
commit
aa82cc4b22
1 changed files with 1 additions and 1 deletions
|
|
@ -575,7 +575,7 @@ void
|
|||
qir_schedule_instructions(struct vc4_compile *c)
|
||||
{
|
||||
void *mem_ctx = ralloc_context(NULL);
|
||||
struct schedule_state state = { 0 };
|
||||
struct schedule_state state = { { 0 } };
|
||||
|
||||
if (debug) {
|
||||
fprintf(stderr, "Pre-schedule instructions\n");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue