st/mesa: Fix missing-braces warning.
authorVinson Lee <vlee@freedesktop.org>
Wed, 22 Mar 2017 23:21:41 +0000 (16:21 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 12 Apr 2017 22:43:30 +0000 (15:43 -0700)
  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 <vlee@freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp

index 72fd70b21557426ed4cf2214bbe8ed14e9aba2de..1d850ef899d0cc26ba871c7798e3d8c389c494aa 100644 (file)
@@ -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,