From: Gert Wollny Date: Tue, 5 Jun 2018 11:58:46 +0000 (+0200) Subject: gallium/aux/tgsi/tgsi_dump.c: Fix -Wsign-compare warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc9e259e58ef73633bd51827427cc2ea63569ae0;p=mesa.git gallium/aux/tgsi/tgsi_dump.c: Fix -Wsign-compare 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) Signed-off-by: Gert Wollny Reviewed-by: Marek Olšák Reviewed-by: Emil Velikov --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c index f6c85390e90..705d9f1cbf7 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_dump.c +++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c @@ -480,7 +480,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 " );