[Mesa-dev] [PATCH 1/2] svga: initialize a variable to silence a gcc warning
Brian Paul
brianp at vmware.com
Wed Aug 17 14:40:12 UTC 2016
---
src/gallium/drivers/svga/svga_pipe_query.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/svga/svga_pipe_query.c b/src/gallium/drivers/svga/svga_pipe_query.c
index bf074b6..33822e6 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;
}
--
1.9.1
More information about the mesa-dev
mailing list