From 5c3f20a25baa6f5b2baa2a6ef693e38095da5508 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 14 Mar 2020 18:57:05 -0700 Subject: panfrost: Fix gnu-empty-initializer error. ../src/gallium/drivers/panfrost/pan_cmdstream.c:1553:54: error: use of GNU empty initializer extension [-Werror,-Wgnu-empty-initializer] union mali_attr varyings[PIPE_MAX_ATTRIBS] = { }; ^ Fixes: 836686daf36c ("panfrost: Move panfrost_emit_varying_descriptor() to pan_cmdstream.c") Signed-off-by: Vinson Lee Reviewed-by: Alyssa Rosenzweig Tested-by: Marge Bot Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 0070c18faba..7d61b2ff7cd 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -1550,7 +1550,7 @@ panfrost_emit_varying_descriptor(struct panfrost_batch *batch, memcpy(trans.cpu, vs->varyings, vs_size); memcpy(trans.cpu + vs_size, fs->varyings, fs_size); - union mali_attr varyings[PIPE_MAX_ATTRIBS] = { }; + union mali_attr varyings[PIPE_MAX_ATTRIBS] = {0}; /* Figure out how many streamout buffers could be bound */ unsigned so_count = ctx->streamout.num_targets; -- cgit v1.2.3