Mesa (master): vc4: Add missing braces in initializer
Eric Anholt
anholt at kemper.freedesktop.org
Tue Feb 16 01:14:43 UTC 2016
Module: Mesa
Branch: master
Commit: aa82cc4b22452b87be066595f7f08fd28f7975f0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa82cc4b22452b87be066595f7f08fd28f7975f0
Author: Rhys Kidd <rhyskidd at gmail.com>
Date: Thu Feb 11 23:50:21 2016 -0500
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 at gmail.com>
Signed-off-by: Eric Anholt <eric at anholt.net>
---
src/gallium/drivers/vc4/vc4_qir_schedule.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/vc4/vc4_qir_schedule.c b/src/gallium/drivers/vc4/vc4_qir_schedule.c
index 2f280c5..ee1e9aa 100644
--- a/src/gallium/drivers/vc4/vc4_qir_schedule.c
+++ b/src/gallium/drivers/vc4/vc4_qir_schedule.c
@@ -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");
More information about the mesa-commit
mailing list