Mesa (master): softpipe: fix a maybe-uninitialized warning
Marek Olšák
mareko at kemper.freedesktop.org
Thu Mar 30 15:17:54 UTC 2017
Module: Mesa
Branch: master
Commit: 65732a8ff632e6aa32af521c9d6531cbb4fab030
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=65732a8ff632e6aa32af521c9d6531cbb4fab030
Author: Marek Olšák <marek.olsak at amd.com>
Date: Thu Mar 30 17:11:41 2017 +0200
softpipe: fix a maybe-uninitialized warning
/home/marek/dev/mesa-main/src/gallium/drivers/softpipe/sp_compute.c:178:
warning: 'grid_size' may be used uninitialized in this function
[-Wmaybe-uninitialized]
---
src/gallium/drivers/softpipe/sp_compute.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/softpipe/sp_compute.c b/src/gallium/drivers/softpipe/sp_compute.c
index 53f7a0beb7..31252255bd 100644
--- a/src/gallium/drivers/softpipe/sp_compute.c
+++ b/src/gallium/drivers/softpipe/sp_compute.c
@@ -175,7 +175,7 @@ softpipe_launch_grid(struct pipe_context *context,
int bwidth, bheight, bdepth;
int w, h, d, i;
int g_w, g_h, g_d;
- uint32_t grid_size[3];
+ uint32_t grid_size[3] = {0};
void *local_mem = NULL;
softpipe_update_compute_samplers(softpipe);
More information about the mesa-commit
mailing list