From: Brian Paul Date: Wed, 17 Aug 2016 14:20:33 +0000 (-0600) Subject: svga: initialize a variable to silence a gcc warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55417140cd2457a2fec7b87fffe9e25eabbb2ca9;p=mesa.git svga: initialize a variable to silence a gcc warning Reviewed-by: Charmaine Lee --- diff --git a/src/gallium/drivers/svga/svga_pipe_query.c b/src/gallium/drivers/svga/svga_pipe_query.c index bf074b6095c..33822e6e5ca 100644 --- a/src/gallium/drivers/svga/svga_pipe_query.c +++ b/src/gallium/drivers/svga/svga_pipe_query.c @@ -1091,7 +1091,7 @@ svga_get_query_result(struct pipe_context *pipe, (void *)&occResult, sizeof(occResult)); vresult->b = occResult.anySamplesRendered != 0; } else { - uint64_t count; + uint64_t count = 0; ret = get_query_result_vgpu9(svga, sq, wait, &count); vresult->b = count != 0; }