Mesa (master): r300g: Silence GCC "missing braces around initializer" warning.

Vinson Lee vlee at kemper.freedesktop.org
Wed Jan 27 14:05:33 PST 2010


Module: Mesa
Branch: master
Commit: 01ed5c6ef5395038add9eae2735fa32e40d39895
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=01ed5c6ef5395038add9eae2735fa32e40d39895

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Jan 27 14:04:53 2010 -0800

r300g: Silence GCC "missing braces around initializer" warning.

---

 src/gallium/drivers/r300/r300_state_derived.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c
index a351c9d..bad9e76 100644
--- a/src/gallium/drivers/r300/r300_state_derived.c
+++ b/src/gallium/drivers/r300/r300_state_derived.c
@@ -305,7 +305,7 @@ static void r300_update_rs_block(struct r300_context* r300,
                                  struct r300_shader_semantics* vs_outputs,
                                  struct r300_shader_semantics* fs_inputs)
 {
-    struct r300_rs_block rs = { 0 };
+    struct r300_rs_block rs = { { 0 } };
     int i, col_count = 0, tex_count = 0, fp_offset = 0;
     void (*rX00_rs_col)(struct r300_rs_block*, int, int, boolean);
     void (*rX00_rs_col_write)(struct r300_rs_block*, int, int);



More information about the mesa-commit mailing list