diff options
author | Timothy Arceri <[email protected]> | 2017-07-20 10:03:28 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-07-26 10:39:52 +1000 |
commit | 17f05e52e750489c159541a178c363401c294249 (patch) | |
tree | 467ffb5d828f5bd3fa3033778f609a5b45f5c630 /src/gallium/auxiliary | |
parent | 5fac8c116e82886d4e9235e4859d4c23969bf1d7 (diff) |
gallium/util: fix unused variable warning
Reviewed-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_threaded_context.c | 8 |
1 files 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 cb9ea3a908d..a9fc6701739 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); } |