diff options
author | Vinson Lee <[email protected]> | 2017-03-22 16:21:41 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2017-04-12 15:43:30 -0700 |
commit | f30f575e7b4bdb39012709ba2dd3104a97a53ffc (patch) | |
tree | c3b0c2b4c2b924be9924f107d2530a5933e2edac /src | |
parent | 4603bea1aa0879656f7efb1e19197488bfdb1f41 (diff) |
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 <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_nir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp index 72fd70b2155..1d850ef899d 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, |