st/mesa: silence missing braces warning in st_program.c
authorBrian Paul <brianp@vmware.com>
Mon, 1 Aug 2016 15:56:21 +0000 (09:56 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 1 Aug 2016 18:20:19 +0000 (12:20 -0600)
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.olsak@amd.com>
src/mesa/state_tracker/st_program.c

index ebeed14ea2e52e4ca2022bb23cc21753c74a38e1..e297bb1d5d58efad2276da8afc17feab136261ad 100644 (file)
@@ -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. */