gallium/util: fix unused variable warning
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 20 Jul 2017 00:03:28 +0000 (10:03 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 26 Jul 2017 00:39:52 +0000 (10:39 +1000)
Reviewed-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_threaded_context.c

index cb9ea3a908dd2ae0eb98be0a87ae0b68053e8626..a9fc6701739dbc5c88fcb30e5365d0cf3e1ec98b 100644 (file)
@@ -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);
 }