From d0d787c9517610473f7f41da97f2e9681ccc375f Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 30 May 2018 14:52:01 +0200 Subject: [PATCH] gallium/aux/tgsi/tgsi_dump.c: Fix warnings tgsi_dump.c: In function 'iter_property': tgsi_dump.c:443:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < prop->Property.NrTokens - 1; ++i) { ^ tgsi_dump.c:459:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i < prop->Property.NrTokens - 2) Reviewed-by: Erik Faye-Lund Signed-off-by: Gert Wollny Signed-off-by: Jakob Bornecrantz --- src/gallium/auxiliary/tgsi/tgsi_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c index b6078eb..64cd397 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_dump.c +++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c @@ -448,7 +448,7 @@ iter_property( struct tgsi_iterate_context *iter, struct tgsi_full_property *prop ) { - unsigned i; + int i; struct dump_ctx *ctx = (struct dump_ctx *)iter; TXT( "PROPERTY " );