Module: Mesa Branch: master Commit: 500a3dd11f9668597325eae53c4540ca871eeb89 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=500a3dd11f9668597325eae53c4540ca871eeb89
Author: Brian Paul <bri...@vmware.com> Date: Mon Aug 1 09:56:21 2016 -0600 st/mesa: silence missing braces warning in st_program.c Silence a gcc warning: state_tracker/st_program.c: In function 'st_create_fp_variant': state_tracker/st_program.c:957:10: warning: missing braces around initializer [-Wmissing-braces] nir_lower_drawpixels_options options = {0}; ^ state_tracker/st_program.c:957:10: warning: (near initialization for 'options.texcoord_state_tokens') [-Wmissing-braces] Reviewed-by: Marek Olšák <marek.ol...@amd.com> --- src/mesa/state_tracker/st_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index ebeed14..e297bb1 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -954,7 +954,7 @@ st_create_fp_variant(struct st_context *st, /* glDrawPixels (color only) */ if (key->drawpixels) { - nir_lower_drawpixels_options options = {0}; + nir_lower_drawpixels_options options = {{0}}; unsigned samplers_used = stfp->Base.Base.SamplersUsed; /* Find the first unused slot. */ _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit