Mesa (master): gallium/util: fix unused variable warning
Timothy Arceri
tarceri at kemper.freedesktop.org
Wed Jul 26 00:40:08 UTC 2017
Module: Mesa
Branch: master
Commit: 17f05e52e750489c159541a178c363401c294249
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=17f05e52e750489c159541a178c363401c294249
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Thu Jul 20 10:03:28 2017 +1000
gallium/util: fix unused variable warning
Reviewed-by: Grazvydas Ignotas <notasas at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/auxiliary/util/u_threaded_context.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c
index cb9ea3a908..a9fc670173 100644
--- a/src/gallium/auxiliary/util/u_threaded_context.c
+++ b/src/gallium/auxiliary/util/u_threaded_context.c
@@ -1978,9 +1978,11 @@ static void
tc_call_generate_mipmap(struct pipe_context *pipe, union tc_payload *payload)
{
struct tc_generate_mipmap *p = (struct tc_generate_mipmap *)payload;
- bool result = pipe->generate_mipmap(pipe, p->res, p->format, p->base_level,
- p->last_level, p->first_layer,
- p->last_layer);
+ bool MAYBE_UNUSED result = pipe->generate_mipmap(pipe, p->res, p->format,
+ p->base_level,
+ p->last_level,
+ p->first_layer,
+ p->last_layer);
assert(result);
pipe_resource_reference(&p->res, NULL);
}
More information about the mesa-commit
mailing list