Re: [Mesa-dev] [PATCH 1/3] gallium/util: fix unused variable warning
FWIW: Reviewed-by: Grazvydas Ignotas for all 3. On Thu, Jul 20, 2017 at 3:07 AM, Timothy Arceri wrote: > --- > 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 cb9ea3a..a9fc670 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); > } > -- > 2.9.4 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH 1/3] gallium/util: fix unused variable warning
Ping on this series :) ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [PATCH 1/3] gallium/util: fix unused variable warning
--- 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 cb9ea3a..a9fc670 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); } -- 2.9.4 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev