From: Brian Paul Date: Tue, 22 Feb 2011 19:44:42 +0000 (-0700) Subject: r300g: fix missing initializers warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbe47a2459c3b3a78a98038aed1990ec8627bb49;p=mesa.git r300g: fix missing initializers warning --- diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c index da6b0bb8aa7..9f85bd4ce5f 100644 --- a/src/gallium/drivers/r300/r300_context.c +++ b/src/gallium/drivers/r300/r300_context.c @@ -482,7 +482,8 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, } { - struct pipe_resource vb = {}; + struct pipe_resource vb; + memset(&vb, 0, sizeof(vb)); vb.target = PIPE_BUFFER; vb.format = PIPE_FORMAT_R8_UNORM; vb.bind = PIPE_BIND_VERTEX_BUFFER; @@ -495,7 +496,8 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen, } { - struct pipe_depth_stencil_alpha_state dsa = {}; + struct pipe_depth_stencil_alpha_state dsa; + memset(&dsa, 0, sizeof(dsa)); dsa.depth.writemask = 1; r300->dsa_decompress_zmask =