From: Vinson Lee Date: Wed, 22 Mar 2017 23:21:41 +0000 (-0700) Subject: st/mesa: Fix missing-braces warning. X-Git-Tag: upstream/17.1.0~254 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f30f575e7b4bdb39012709ba2dd3104a97a53ffc;p=platform%2Fupstream%2Fmesa.git st/mesa: Fix missing-braces warning. CXX state_tracker/st_glsl_to_nir.lo state_tracker/st_glsl_to_nir.cpp:250:57: warning: suggest braces around initialization of subobject [-Wmissing-braces] nir_lower_wpos_ytransform_options wpos_options = {0}; ^ {} Signed-off-by: Vinson Lee Reviewed-by: Samuel Pitoiset --- diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp index 72fd70b..1d850ef 100644 --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp @@ -248,7 +248,7 @@ st_glsl_to_nir(struct st_context *st, struct gl_program *prog, static const gl_state_index wposTransformState[STATE_LENGTH] = { STATE_INTERNAL, STATE_FB_WPOS_Y_TRANSFORM }; - nir_lower_wpos_ytransform_options wpos_options = {0}; + nir_lower_wpos_ytransform_options wpos_options = { { 0 } }; struct pipe_screen *pscreen = st->pipe->screen; memcpy(wpos_options.state_tokens, wposTransformState,