vc4: Add missing braces in initializer
authorRhys Kidd <rhyskidd@gmail.com>
Fri, 12 Feb 2016 04:50:21 +0000 (23:50 -0500)
committerEric Anholt <eric@anholt.net>
Tue, 16 Feb 2016 01:13:52 +0000 (17:13 -0800)
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>
src/gallium/drivers/vc4/vc4_qir_schedule.c

index 2f280c54523e597a1608878f14decec21500f194..ee1e9aafbb91cf4c4f459d03a7512fa87589b94b 100644 (file)
@@ -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");