From 500a3dd11f9668597325eae53c4540ca871eeb89 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 1 Aug 2016 09:56:21 -0600 Subject: [PATCH] st/mesa: silence missing braces warning in st_program.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- 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 ebeed14ea2e..e297bb1d5d5 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. */ -- 2.30.2