Mesa (master): softpipe: fix release build unused variable warning
Marek Olšák
mareko at kemper.freedesktop.org
Sat Dec 10 20:26:12 UTC 2016
Module: Mesa
Branch: master
Commit: 15e12ab8fc06dabe8ef5d1704fe09b966f9d124b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=15e12ab8fc06dabe8ef5d1704fe09b966f9d124b
Author: Grazvydas Ignotas <notasas at gmail.com>
Date: Sat Dec 10 21:10:47 2016 +0200
softpipe: fix release build unused variable warning
Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/softpipe/sp_state_shader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/softpipe/sp_state_shader.c b/src/gallium/drivers/softpipe/sp_state_shader.c
index a745662..b2eda24 100644
--- a/src/gallium/drivers/softpipe/sp_state_shader.c
+++ b/src/gallium/drivers/softpipe/sp_state_shader.c
@@ -420,7 +420,7 @@ static void
softpipe_delete_compute_state(struct pipe_context *pipe,
void *cs)
{
- struct softpipe_context *softpipe = softpipe_context(pipe);
+ MAYBE_UNUSED struct softpipe_context *softpipe = softpipe_context(pipe);
struct sp_compute_shader *state = (struct sp_compute_shader *)cs;
assert(softpipe->cs != state);
More information about the mesa-commit
mailing list