[Mesa-dev] [PATCH 2/2] gallium/util: silence clang warning in blitter code
Roland Scheidegger
sroland at vmware.com
Thu Feb 8 18:50:19 UTC 2018
For the series:
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Am 08.02.2018 um 18:02 schrieb Brian Paul:
> Silence "warning: comparison of constant 4294967295 with expression
> of type 'ubyte'".
> ---
> src/gallium/auxiliary/util/u_blitter.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
> index 63d1307..98c3ac5 100644
> --- a/src/gallium/auxiliary/util/u_blitter.c
> +++ b/src/gallium/auxiliary/util/u_blitter.c
> @@ -659,7 +659,7 @@ void util_blitter_restore_fragment_states(struct blitter_context *blitter)
>
> static void blitter_check_saved_fb_state(MAYBE_UNUSED struct blitter_context_priv *ctx)
> {
> - assert(ctx->base.saved_fb_state.nr_cbufs != ~0u);
> + assert(ctx->base.saved_fb_state.nr_cbufs != (ubyte) ~0);
> }
>
> static void blitter_disable_render_cond(struct blitter_context_priv *ctx)
>
More information about the mesa-dev
mailing list