aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace
diff options
context:
space:
mode:
authorGrazvydas Ignotas <[email protected]>2016-04-16 04:00:12 +0300
committerIan Romanick <[email protected]>2016-04-25 12:23:21 +0200
commitcbb0d4ad75e6309932af7995ca80fa5ff5db7c70 (patch)
tree82a47174ffd75e683e8ab9fe75f5886c59180db5 /src/gallium/drivers/trace
parentbbeb9ab2f71409aad47485e7a1b8900f6839a481 (diff)
gallium: fix warnings in release build
Mark variables MAYBE_UNUSED to avoid unused-but-set-variable warnings in release build. Signed-off-by: Grazvydas Ignotas <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers/trace')
-rw-r--r--src/gallium/drivers/trace/tr_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c
index 7ed4f4988dd..18c5c4345a7 100644
--- a/src/gallium/drivers/trace/tr_context.c
+++ b/src/gallium/drivers/trace/tr_context.c
@@ -1893,6 +1893,6 @@ error1:
void
trace_context_check(const struct pipe_context *pipe)
{
- struct trace_context *tr_ctx = (struct trace_context *) pipe;
+ MAYBE_UNUSED struct trace_context *tr_ctx = (struct trace_context *) pipe;
assert(tr_ctx->base.destroy == trace_context_destroy);
}