From: Timothy Arceri Date: Thu, 20 Jul 2017 00:03:28 +0000 (+1000) Subject: gallium/util: fix unused variable warning X-Git-Tag: android-x86-8.1-r1~11272 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=17f05e52e750489c159541a178c363401c294249;p=android-x86%2Fexternal-mesa.git gallium/util: fix unused variable warning Reviewed-by: Grazvydas Ignotas Reviewed-by: Marek Olšák --- 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); }